systemd Unit

Juan Orti Alcaine juan.orti at miceliux.com
Mon Aug 18 09:45:16 CEST 2014


El 2014-08-16 16:43, Luigi Rosa escribió:
> 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
> 

And this one comes with Fedora:

http://pkgs.fedoraproject.org/cgit/amavisd-new.git/tree/amavisd.service


[Unit]
Description=Amavisd-new is an interface between MTA and content 
checkers.
Documentation=http://www.ijs.si/software/amavisd/#doc
After=network.target
Wants=clamd at amavisd.service

[Service]
Type=forking
User=amavis
Group=amavis
PIDFile=/var/run/amavisd/amavisd.pid
ExecStart=/usr/sbin/amavisd -c /etc/amavisd/amavisd.conf
Restart=on-failure
PrivateTmp=true
PrivateDevices=true
NoNewPrivileges=true

[Install]
WantedBy=multi-user.target


More information about the amavis-users mailing list