aboutsummaryrefslogtreecommitdiffstats
path: root/centos/sources/rspamd.service
diff options
context:
space:
mode:
Diffstat (limited to 'centos/sources/rspamd.service')
-rw-r--r--centos/sources/rspamd.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/centos/sources/rspamd.service b/centos/sources/rspamd.service
new file mode 100644
index 000000000..eec4cd9ea
--- /dev/null
+++ b/centos/sources/rspamd.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=rspamd
+After=syslog.target network.target remote-fs.target nss-lookup.target
+
+[Service]
+Type=simple
+PIDFile=/var/lib/rspamd/rspamd.pid
+ExecStartPre=/usr/bin/rspamd -u rspamd -g rspamd -t
+ExecStart=/usr/bin/rspamd -u rspamd -g rspamd -f
+ExecReload=/bin/kill -s HUP $MAINPID
+ExecStop=/bin/kill -s QUIT $MAINPID
+
+[Install]
+WantedBy=multi-user.target