aboutsummaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorCameron Norman <CameronNemo@users.noreply.github.com>2014-07-23 15:33:42 -0700
committerCameron Norman <CameronNemo@users.noreply.github.com>2014-07-23 15:33:42 -0700
commit736bff824e6a0b64a60f7d76cf191e588c359af3 (patch)
treeb32f962f633e26f8c4ae171bbab5b5fa18f05f14 /debian
parent379055dbbb4af997b4d3ffb161d447872d7ca357 (diff)
downloadrspamd-736bff824e6a0b64a60f7d76cf191e588c359af3.tar.gz
rspamd-736bff824e6a0b64a60f7d76cf191e588c359af3.zip
Add Upstart job to debian packaging
This will automatically be shipped by dh_installinit.
Diffstat (limited to 'debian')
-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