From: Cameron Norman Date: Wed, 23 Jul 2014 22:33:42 +0000 (-0700) Subject: Add Upstart job to debian packaging X-Git-Tag: 0.7.2~21^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=736bff824e6a0b64a60f7d76cf191e588c359af3;p=rspamd.git Add Upstart job to debian packaging This will automatically be shipped by dh_installinit. --- 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 " + +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