summaryrefslogtreecommitdiff
path: root/rspamd/rspamd-systemd.patch
diff options
context:
space:
mode:
authorDeposite Pirate2018-09-16 23:29:24 +0200
committerDeposite Pirate2018-09-16 23:29:24 +0200
commit569e598d38adb1918d127ee31af1cd332b072dcf (patch)
tree23a7204866591100db57f3acac53cd410ea8d3e4 /rspamd/rspamd-systemd.patch
Initial commit.HEADmaster
Diffstat (limited to 'rspamd/rspamd-systemd.patch')
-rw-r--r--rspamd/rspamd-systemd.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/rspamd/rspamd-systemd.patch b/rspamd/rspamd-systemd.patch
new file mode 100644
index 0000000..a779603
--- /dev/null
+++ b/rspamd/rspamd-systemd.patch
@@ -0,0 +1,15 @@
+diff -r -u -N rspamd-0.8.0/rspamd.service rspamd-0.8.0-systemd/rspamd.service
+--- rspamd-0.8.0/rspamd.service 2014-04-21 13:31:50.000000000 +0200
++++ rspamd-0.8.0-systemd/rspamd.service 2015-01-15 05:03:57.519561226 +0100
+@@ -5,10 +5,7 @@
+ 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
+-User=_rspamd
++User=rspamd