diff options
Diffstat (limited to 'testing/tvheadend-git/tvheadend-git.initd')
| -rw-r--r-- | testing/tvheadend-git/tvheadend-git.initd | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/tvheadend-git/tvheadend-git.initd b/testing/tvheadend-git/tvheadend-git.initd index 9b56313a8..b72df3378 100644 --- a/testing/tvheadend-git/tvheadend-git.initd +++ b/testing/tvheadend-git/tvheadend-git.initd @@ -6,6 +6,9 @@ depend() { start() { ebegin "Starting tvheadend" + + checkconf || return 1 + start-stop-daemon --start \ --exec ${TVHBIN} -- \ -C -f -u ${TVHUSER} \ @@ -21,3 +24,9 @@ stop() { eend $? } +checkconf() { + if [ ! -d "$TVHCONF" ]; then + eerror "config directory does not exist!" + return 1 + fi +} |
