aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'etc/init.d/vdr')
-rwxr-xr-xetc/init.d/vdr4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/init.d/vdr b/etc/init.d/vdr
index 7317a2b..9ef7dc0 100755
--- a/etc/init.d/vdr
+++ b/etc/init.d/vdr
@@ -39,7 +39,6 @@ depend() {
}
start_vdr() {
- common_init
local exitcode
einfo "Preparing start of vdr:"
@@ -99,7 +98,6 @@ start_vdr() {
}
stop_vdr() {
- common_init
init_plugin_loader stop
load_addons_prefixed pre-stop
@@ -142,11 +140,13 @@ stop_watchdog() {
}
start() {
+ common_init
start_vdr || return 1
start_watchdog || return 2
}
stop() {
+ common_init
stop_watchdog || return 2
stop_vdr
}