From 267eecc7677bd4c992415e1989ffcd4ac7ed7be2 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 17 Oct 2009 18:30:14 +0200 Subject: [PATCH] Ensure that Ubuntu /var/run is created in init.d scripts suggested by nick --- bacula/platforms/ubuntu/bacula-dir.in | 1 + bacula/platforms/ubuntu/bacula-fd.in | 1 + bacula/platforms/ubuntu/bacula-sd.in | 1 + 3 files changed, 3 insertions(+) diff --git a/bacula/platforms/ubuntu/bacula-dir.in b/bacula/platforms/ubuntu/bacula-dir.in index d1ce5a1fc9..9bf09c9836 100644 --- a/bacula/platforms/ubuntu/bacula-dir.in +++ b/bacula/platforms/ubuntu/bacula-dir.in @@ -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 diff --git a/bacula/platforms/ubuntu/bacula-fd.in b/bacula/platforms/ubuntu/bacula-fd.in index 3e83c56e44..673ef54ce7 100644 --- a/bacula/platforms/ubuntu/bacula-fd.in +++ b/bacula/platforms/ubuntu/bacula-fd.in @@ -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 diff --git a/bacula/platforms/ubuntu/bacula-sd.in b/bacula/platforms/ubuntu/bacula-sd.in index 1f54405a88..3a1e6b1db1 100644 --- a/bacula/platforms/ubuntu/bacula-sd.in +++ b/bacula/platforms/ubuntu/bacula-sd.in @@ -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 -- 2.39.5