From 789544646b092a583a1086f2959e94d5bc139513 Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Wed, 6 Jul 2011 09:02:16 +0000 Subject: testing/calibre: added initd and confd --- testing/calibre/calibre.initd | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 testing/calibre/calibre.initd (limited to 'testing/calibre/calibre.initd') diff --git a/testing/calibre/calibre.initd b/testing/calibre/calibre.initd new file mode 100644 index 000000000..92986a9a7 --- /dev/null +++ b/testing/calibre/calibre.initd @@ -0,0 +1,16 @@ +#!/sbin/runscript + +depend() { + need net + after firewall +} +start() { + ebegin "Starting Calibre Server" + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_ARGS + eend $? +} + +stop() { + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE + rm -f $PIDFILE +} -- cgit v1.2.3