From e768e33ddd862bf988d09b7965867784b2db8596 Mon Sep 17 00:00:00 2001 From: Cameron Norman Date: Sat, 25 Oct 2014 18:42:35 -0700 Subject: [PATCH] Add Upstart job to debian packaging --- debian/i2pd.upstart | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 debian/i2pd.upstart diff --git a/debian/i2pd.upstart b/debian/i2pd.upstart new file mode 100644 index 00000000..0527935d --- /dev/null +++ b/debian/i2pd.upstart @@ -0,0 +1,10 @@ +description "i2p client daemon" + +start on runlevel [2345] +stop on runlevel [016] or unmounting-filesystem + +# these can be overridden in /etc/init/i2pd.override +env I2P_HOST="1.2.3.4" +env I2P_PORT="4567" + +exec /usr/sbin/i2pd --daemon=0 --log=1 --host=$I2P_HOST --port=$I2P_PORT