]> source.dussan.org Git - rspamd.git/commitdiff
Add Upstart job to debian packaging 84/head
authorCameron Norman <CameronNemo@users.noreply.github.com>
Wed, 23 Jul 2014 22:33:42 +0000 (15:33 -0700)
committerCameron Norman <CameronNemo@users.noreply.github.com>
Wed, 23 Jul 2014 22:33:42 +0000 (15:33 -0700)
This will automatically be shipped by dh_installinit.

debian/rspamd.upstart [new file with mode: 0644]

diff --git a/debian/rspamd.upstart b/debian/rspamd.upstart
new file mode 100644 (file)
index 0000000..1871d69
--- /dev/null
@@ -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