]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/platforms/ubuntu/bacula-sd.in
Allow custom variables and checks from debian/ubuntu startup scripts
[bacula/bacula] / bacula / platforms / ubuntu / bacula-sd.in
index 46b48d7aa043125235128f4cb164620e9eaf5673..e778ea961333b6f28240c3806787de45193837f6 100644 (file)
@@ -42,6 +42,10 @@ if [ -n "`getent services ${NAME}`" ]; then
    BPORT=`getent services ${NAME} | awk '{ gsub("/tcp","",$2); print $2; }'`
 fi
 
+if [ -f /etc/default/$NAME ]; then
+   . /etc/default/$NAME
+fi
+
 mkdir -p @piddir@
 PIDFILE=@piddir@/${NAME}.${BPORT}.pid