init script cleanup, use /etc/rc.d/ for enabled scripts, /etc/init.d/<pkgname> (enabl...
[packages.git] / sound / mt-daapd / files / mt-daapd.init
index 344621a..460824e 100644 (file)
@@ -5,9 +5,9 @@ BIN=mt-daapd
 DEFAULT=/etc/default/$BIN
 RUN_D=/var/run
 PID_F=$RUN_D/$BIN.pid
-[ -f $DEFAULT ] && . $DEFAULT
 
 start() {
+       [ -f $DEFAULT ] && . $DEFAULT
        [ -d $RUN_D ] || mkdir -p $RUN_D
        $BIN $OPTIONS
 }