<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.sophos.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Systemd File for SAVDID</title><link>https://community.sophos.com/on-premise-endpoint/f/sophos-anti-virus-for-linux-basic/101833/systemd-file-for-savdid</link><description>Hi, 
 
 does anyone have a working savdid.service file for SAVDI ? 
 I tried to create one but its not working: 
 
 [Unit] Description=SAV Dynamic Interface (SAVDI) for Sophos Anti-Virus for Linux. After=network.target 
 [Service] Type=forking PIDFile</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Systemd File for SAVDID</title><link>https://community.sophos.com/thread/378855?ContentTypeID=1</link><pubDate>Sun, 15 Jul 2018 12:38:06 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:1cffca10-86dc-46d0-b0d9-d09995d47a66</guid><dc:creator>Henry Miller</dc:creator><description>&lt;p&gt;The systemd unit file below works for me on RHEL 7.&lt;/p&gt;
&lt;p&gt;/etc/systemd/system/savdid.service:&lt;/p&gt;
&lt;pre&gt;[Unit]&lt;br /&gt;Description=Sophos SAV Dynamic Interface Daemon&lt;br /&gt;After=network.target&lt;br /&gt;&lt;br /&gt;[Service]&lt;br /&gt;Type=forking&lt;br /&gt;PIDFile=/var/run/savdid.pid&lt;br /&gt;ExecStart=/usr/local/bin/savdid -d -c /etc/savdid.conf -f /var/run/savdid.pid -s&lt;br /&gt;ExecReload=/bin/kill -HUP $MAINPID&lt;br /&gt;Restart=on-failure&lt;br /&gt;PrivateTmp=true&lt;br /&gt;ProtectSystem=full&lt;br /&gt;ProtectHome=true&lt;br /&gt;&lt;br /&gt;[Install]&lt;br /&gt;WantedBy=multi-user.target&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Savdid does not start if there is an unprivileged user/group enforcement in systemd unit file itself, however it does start if unprivileged user/group is configured&amp;nbsp;in savdid.conf instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Systemd File for SAVDID</title><link>https://community.sophos.com/thread/372567?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 08:23:15 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:47e13fc0-5905-46a9-a412-0b6b7dd57ea2</guid><dc:creator>Gowtham Mani</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Hans Wurst,&lt;/p&gt;
&lt;p&gt;Can you please let us know what is that you are trying to achieve?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Systemd File for SAVDID</title><link>https://community.sophos.com/thread/372564?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 08:03:56 GMT</pubDate><guid isPermaLink="false">4be5eb7d-caa4-4ff5-8e60-8f9463545a35:cb15dd12-465d-41a7-a3e1-7d05d0dfb1be</guid><dc:creator>IsmailJaweed</dc:creator><description>&lt;p&gt;Just curios about the purpose of this file.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see what it &amp;quot;wants&amp;quot; to capture. If nothing. are you trying to create for savdi itself ?&lt;/p&gt;
&lt;p&gt;Not sure if this works for you however, it is a general template as seen below&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Try adding User, Group and Wants&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[Unit]&lt;br /&gt;Description=SAV Dynamic Interface (SAVDI) is an interface between Amavis and Sophos Anti-Virus for Linux.&lt;br /&gt;After=network.target&lt;br /&gt;Wants= &lt;span style="color:#339966;"&gt;&lt;strong&gt;//service name&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;[Service]&lt;br /&gt;Type=forking&lt;br /&gt;User=&amp;nbsp; &lt;span style="color:#339966;"&gt;&lt;strong&gt;// User Name&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;Group=&amp;nbsp; &lt;span style="color:#339966;"&gt;&lt;strong&gt;//Group Name&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;PIDFile=/var/run/sophos/savdi.pid&lt;br /&gt;ExecStart=/usr/local/bin/savdid -d -c /usr/local/savdi/savdid.conf&lt;br /&gt;ExecReload=/bin/kill -HUP $MAINPID&lt;br /&gt;Restart=on-failure&lt;br /&gt;PrivateTmp=true&lt;br /&gt;NoNewPrivileges=true&lt;/p&gt;
&lt;p&gt;[Install]&lt;br /&gt;WantedBy=multi-user.target&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>