aboutsummaryrefslogtreecommitdiffstats
path: root/rspamd.service
diff options
context:
space:
mode:
authorMikhail Gusarov <dottedmag@debian.org>2015-03-07 09:53:04 +0000
committerAndrew Lewis <nerf@judo.za.org>2015-03-11 21:51:15 +0200
commit7fcaf66165072c1916d4dcddeb3b4d049370c426 (patch)
tree50616aa2ba727c8abc70780bcb9b11e2e271abd4 /rspamd.service
parent2c7f4e103f8f8626200ab4000e2c709381d0ba02 (diff)
downloadrspamd-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.service11
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