What does the %i mean here, and why is it blank? (systemctl Centos7)
Code:
# cat /usr/lib/systemd/system/clamd.service
[Unit]
Description = clamd scanner (%i) daemon
After = syslog.target nss-lookup.target network.target
[Service]
Type = simple
ExecStart = /usr/sbin/clamd -c /etc/clamd.d/%i.conf --foreground=yes
Restart = on-failure
PrivateTmp = true
And in /var/log/messages I'm getting:
Code:
clamd: ERROR: Can't open/parse the config file /etc/clamd.d/.conf
The actual files is called /etc/clamd.d/scan.conf, although I could rename that if needed. If I rename it to just ".conf" it works, but clearly its suppose to be putting the %i variable there.
Code:
# mv scan.conf .conf
# service clamd start
Redirecting to /bin/systemctl start clamd.service
# netstat -lntp |grep clamd
tcp 0 0 127.0.0.1:3310 0.0.0.0:* LISTEN 28159/clamd
Thanks in advance!!!!