<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    "What tells it that it is a "scan" service? That bit of the puzzle
    seems
    to be missing..."
    <br>
    <br>
    Whatever is the parameter after the @ and before the dot  becomes %i
    in the service file.  Look at the service file:<br>
    <font color="#009900">[Unit]<br>
      Description = clamd scanner (%i) daemon<br>
      After = syslog.target nss-lookup.target network.target<br>
      <br>
      [Service]<br>
      Type = simple<br>
      ExecStart = /usr/sbin/clamd -c /etc/clamd.d/%i.conf --nofork=yes<br>
      Restart = on-failure<br>
      PrivateTmp = true</font><br>
    <br>
    so clamd@<font color="#cc0000">scan</font>.service invokes clamd
    with the <font color="#cc0000">scan</font>.conf file as it's
    configuration file.<br>
    This way you can have multiple clamd services each using a different
    config file.  Just create another config file in /etc/clamd.d/<font
      color="#cc0000">my_config</font>.conf and:<br>
    ln -s /lib/systemd/system/clamd@.service /etc/systemd/system/clamd@<font
      color="#cc0000">my_config</font>.service<br>
    <br>
    You should have the /etc/clamd.d/scan.conf I think:<br>
    <br>
    [root@moses shorewall]# rpm -qf /etc/clamd.d/scan.conf <br>
    clamav-scanner-0.97.5-1700.fc17.noarch<br>
    <br>
    Bill<br>
  </body>
</html>