Thomas
I believe that you should have used “restart” instead of “start” in your
systemctl commands. Once you make a change in your configs you need to
totally restart the director, which “systemnctl restart bacula-dir” would not.
The start only starts the daemon if it is not already running.
You could have used, bconsole and just done a reload command. This this does
the same as shutting down and restarting the daemon.
From: Tom Plancon <tplan...@bkaarchs.com>
Sent: Tuesday, May 15, 2018 4:09 PM
To: Bacula-users@lists.sourceforge.net
Subject: [Bacula-users] Bacula 7.4, 7, CentOS 7, and systemd - a cautionary tale
Hi folks,
Just spent several frustrating hours trying to get some special backup configs
into my bacula-dir.conf file. I'd shut down the Director, "sytemctl stop
bacula-dir", edit the file, then start the Director, "systemctl start
bacula-dir" and nothing. Did a "bacula-dir -t" and found some syntax errors,
fixed those and then "systemctl start bacula-dir" and again - nothing. Tried
"bacula-dir -t", no errors reported! Edited the conf file and commented out all
my changes, then "systemctl start bacula-dir" and it worked. But I did not have
the config I wanted.
So piece by piece I un-commented the lines I wanted, did a "bacula-dir -t", no
errors reported. Tried to start, "systemctl start bacula-dir", nothing. Went
back and forth this way for a long time finally commenting out again back to
original file, then "bacula-dir -t", no errors reported. Tried to start,
"systemctl start bacula-dir", nothing!
Then I rebooted the whole server - when it came up the Director was running!!!
Stopped the Director, tried adding back in some of the config lines I wanted,
did a "bacula-dir -t", no errors reported. Tried to start, "systemctl start
bacula-dir", nothing! Again I rebooted - Director was running with my special
config!!!
Not sure what was going on, but bottom line - don't trust systemd!
--
Thomas Plancon
CAD/IT MANAGER
E: tplan...@bkaarchs.com<mailto:tplan...@bkaarchs.com>
W: www.bkaarchitects.com<http://www.bkaarchs.com>
[BKA/LOGO]
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users