diff options
author | Mikhail Gusarov <dottedmag@debian.org> | 2015-03-07 09:53:04 +0000 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2015-03-11 21:51:15 +0200 |
commit | 7fcaf66165072c1916d4dcddeb3b4d049370c426 (patch) | |
tree | 50616aa2ba727c8abc70780bcb9b11e2e271abd4 /rspamd.service | |
parent | 2c7f4e103f8f8626200ab4000e2c709381d0ba02 (diff) | |
download | rspamd-7fcaf66165072c1916d4dcddeb3b4d049370c426.tar.gz rspamd-7fcaf66165072c1916d4dcddeb3b4d049370c426.zip |
Unify systemd support
- Move it from debian/ and centos/
- Ensure Debian package installs .service/.socket
- Enable socket-activated service
- Clean up redundant CentOS config files
Diffstat (limited to 'rspamd.service')
-rw-r--r-- | rspamd.service | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/rspamd.service b/rspamd.service index ff9655b93..1cbc4f232 100644 --- a/rspamd.service +++ b/rspamd.service @@ -1,14 +1,7 @@ [Unit] Description=rapid spam filtering system +After=nss-lookup.target [Service] -Type=simple -# Replace Pre/Post with RuntimeDirectory once it is available -PermissionsStartOnly=true -ExecStartPre=/bin/mkdir -m700 -p /run/rspamd -ExecStartPre=/bin/chown _rspamd:_rspamd /run/rspamd -ExecStart=/usr/bin/rspamd -f -c /etc/rspamd/rspamd.conf -ExecReload=/bin/kill -HUP $MAINPID -ExecStopPost=/bin/rm -r /run/rspamd -WorkingDirectory=/var/lib/rspamd +ExecStart=/usr/bin/rspamd -c /etc/rspamd/rspamd.conf -f User=_rspamd |