aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/rspamd.upstart8
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/rspamd.upstart b/debian/rspamd.upstart
new file mode 100644
index 000000000..1871d6997
--- /dev/null
+++ b/debian/rspamd.upstart
@@ -0,0 +1,8 @@
+description "rspamd - rapid spam filtering system"
+author "Cameron Norman <camerontnorman@gmail.com>"
+
+start on filesystem
+stop on runlevel [016] or unmounting-filesystem
+
+pre-start exec install -m 700 -o _rspamd -g _rspamd -d /run/rspamd
+exec /usr/bin/rspamd -u _rspamd -g _rspamd -f -c /etc/rspamd/rspamd.conf