summaryrefslogtreecommitdiffstats
path: root/unmaintained/calibre/calibre.initd
blob: 25117ed375138ab69c2b361f1cfcbf5630a36e35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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() {  
	ebegin "Stopping Calibre Server"
	start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE  
	eend $?
}