]> git.sur5r.net Git - bacula/bacula/commitdiff
Ensure that Ubuntu /var/run is created in init.d scripts suggested by nick <nick...
authorKern Sibbald <kern@sibbald.com>
Sat, 17 Oct 2009 16:30:14 +0000 (18:30 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 17 Oct 2009 16:30:14 +0000 (18:30 +0200)
bacula/platforms/ubuntu/bacula-dir.in
bacula/platforms/ubuntu/bacula-fd.in
bacula/platforms/ubuntu/bacula-sd.in

index d1ce5a1fc90f6bc6287dcc578ecb4f829decb81f..9bf09c9836ff97bdc18951dcfea0cb88f709ffe7 100644 (file)
@@ -31,6 +31,7 @@ if [ -n "`getent services ${NAME}`" ]; then
    BPORT=`getent services ${NAME} | awk '{ gsub("/tcp","",$2); print $2; }'`
 fi
 
+mkdir -p @piddir@
 PIDFILE=@piddir@/${NAME}.${BPORT}.pid
 
 if [ "x${BUSER}" != "x" ]; then
index 3e83c56e445454c0baa0b296600cfe4cc88e070c..673ef54ce7f1f7a6e8f05a9b223482b4d4ef4728 100644 (file)
@@ -31,6 +31,7 @@ if [ -n "`getent services ${NAME}`" ]; then
    BPORT=`getent services ${NAME} | awk '{ gsub("/tcp","",$2); print $2; }'`
 fi
 
+mkdir -p @piddir@
 PIDFILE=@piddir@/${NAME}.${BPORT}.pid
 
 if [ "x${BUSER}" != "x" ]; then
index 1f54405a88ab46de9109cdc7f356ce02d58fb4a6..3a1e6b1db1190e6f4e5764330781453dbdfa1ab4 100644 (file)
@@ -31,6 +31,7 @@ if [ -n "`getent services ${NAME}`" ]; then
    BPORT=`getent services ${NAME} | awk '{ gsub("/tcp","",$2); print $2; }'`
 fi
 
+mkdir -p @piddir@
 PIDFILE=@piddir@/${NAME}.${BPORT}.pid
 
 if [ "x${BUSER}" != "x" ]; then