aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tvheadend-git/tvheadend-git.initd
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2012-11-22 17:01:02 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2012-11-22 17:01:02 +0100
commit452b90aac34dc84967abaae2024ddfc6b378833b (patch)
treefbd8f5d08a98cb60b94a571c9a9278b80e6f70bd /testing/tvheadend-git/tvheadend-git.initd
parent5f98cefe85cb966d6aa9315845d2327ba377299c (diff)
downloadaports-452b90aac34dc84967abaae2024ddfc6b378833b.tar.bz2
aports-452b90aac34dc84967abaae2024ddfc6b378833b.tar.xz
testing/tvheadend-git: new snapshot
Diffstat (limited to 'testing/tvheadend-git/tvheadend-git.initd')
-rw-r--r--testing/tvheadend-git/tvheadend-git.initd15
1 files changed, 10 insertions, 5 deletions
diff --git a/testing/tvheadend-git/tvheadend-git.initd b/testing/tvheadend-git/tvheadend-git.initd
index 6a50b9f3f2..9b56313a8b 100644
--- a/testing/tvheadend-git/tvheadend-git.initd
+++ b/testing/tvheadend-git/tvheadend-git.initd
@@ -1,18 +1,23 @@
#!/sbin/runscript
+
depend() {
need net
}
start() {
- ebegin "Starting tvheadend"
+ ebegin "Starting tvheadend"
start-stop-daemon --start \
- --user ${TVHUSER} \
- --exec ${TVHBIN} -- -C -f
+ --exec ${TVHBIN} -- \
+ -C -f -u ${TVHUSER} \
+ -c ${TVHCONF}
eend $?
}
stop() {
- ebegin "Stopping tvheadend"
- start-stop-daemon --stop --quiet --name tvheadend --signal 2
+ ebegin "Stopping tvheadend"
+ start-stop-daemon --stop --quiet \
+ --retry TERM/30/KILL/5 \
+ --pidfile /var/run/tvheadend.pid
eend $?
}
+