systemd Unit

Luigi Rosa lists at luigirosa.com
Sat Aug 16 16:43:13 CEST 2014


I am trying to create a systemd unit file to run amavisd-new

amavisd starts and then exits without demonizing itself

See my file at the and of this message.

I have tried also with no success:
* Type=forking instead of simple
* ExecStart=/usr/local/sbin/amavisd
* ExecStart=/usr/local/sbin/amavisd start




[Unit]
Description=Antispam
After=network.target
After=network.target

[Service]
Type=simple
Restart=always
RestartSec=60
ExecStart=/usr/bin/perl -T /usr/local/sbin/amavisd
ExecStop=/usr/bin/perl -T /usr/local/sbin/amavisd stop
TimeoutSec=60

[Install]
WantedBy=multi-user.target






Ciao,
luigi

-- 
/
+--[Luigi Rosa]--
\

May all your PUSHes be POPed.


More information about the amavis-users mailing list