ports/sysutils/bacula/patches/patch-scripts_bacula-ctl-dir_in

11 lines
345 B
Text

Index: scripts/bacula-ctl-dir.in
--- scripts/bacula-ctl-dir.in.orig
+++ scripts/bacula-ctl-dir.in
@@ -219,6 +219,7 @@ case "$1" in
start)
[ -x ${BACDIRBIN}/bacula-dir ] && {
echo "Starting the $Bacula Director daemon"
+ cd ${SUBSYSDIR}
OPTIONS=''
if [ "${DIR_USER}" != '' ]; then
OPTIONS="${OPTIONS} -u ${DIR_USER}"