X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fplatforms%2Fubuntu%2Fbacula-sd.in;h=e778ea961333b6f28240c3806787de45193837f6;hb=a3014299916e5753eb7e73bb8b45ce487db7dee9;hp=46b48d7aa043125235128f4cb164620e9eaf5673;hpb=da58a9b3ac5b373a0f9b10e468e4605d338b7f15;p=bacula%2Fbacula diff --git a/bacula/platforms/ubuntu/bacula-sd.in b/bacula/platforms/ubuntu/bacula-sd.in index 46b48d7aa0..e778ea9613 100644 --- a/bacula/platforms/ubuntu/bacula-sd.in +++ b/bacula/platforms/ubuntu/bacula-sd.in @@ -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