From 736bff824e6a0b64a60f7d76cf191e588c359af3 Mon Sep 17 00:00:00 2001 From: Cameron Norman Date: Wed, 23 Jul 2014 15:33:42 -0700 Subject: [PATCH] Add Upstart job to debian packaging This will automatically be shipped by dh_installinit. --- debian/rspamd.upstart | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 debian/rspamd.upstart 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 -- 2.39.5