There hasn't been any motion on the bug report, so I came up with a workaround (this is definitely not a fix). The bug isn't hit if you have the LC_MESSAGES environment variable set. This is maybe why it worked for you with sudo but not launchctl, Brock. To do this with launchctl, set the environment variable in /Library/LaunchDaemons/com.bareos.bareos-fd.plist.
<key>EnvironmentVariables</key> <dict> <key>LC_MESSAGES</key> <string>C</string> </dict> Full example file attached. Then unload, reload, and start the service. sudo launchctl unload -w /Library/LaunchDaemons/com.bareos.bareos-fd.plist sudo launchctl load -w /Library/LaunchDaemons/com.bareos.bareos-fd.plist sudo launchctl start com.bareos.bareos-fd I also found that bareos-fd was looking for a wrong Working Directory even though it is set correctly in the plist (I tested this to be sure). This is what I got in /var/run/bareos-fd.log: bareos-fd: ERROR TERMINATION at lib/util.cc:1072 Working Directory: "/usr/local/var/lib/bareos" not found. Cannot continue. I'm not sure if this is another bug, but as a workaround I created that directory. bareos-fd does want to use that directory, so it's best as a symlink to the normal location. % sudo mkdir -p /usr/local/var/lib % sudo ln -s /usr/local/bareos/var/lib/bareos /usr/local/var/lib/bareos Josh On Tuesday, October 31, 2023 at 7:15:37 PM UTC-4 Joshua Myles wrote: https://bugs.bareos.org/view.php?id=1565 Josh -- You received this message because you are subscribed to the Google Groups "bareos-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/fb4740ec-82e3-49fe-b5e0-52e0ae095436n%40googlegroups.com.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.bareos.bareos-fd</string> <key>ProgramArguments</key> <array> <string>/usr/local/bareos/sbin/bareos-fd</string> <string>-f</string> </array> <key>StandardOutPath</key> <string>/var/run/bareos-fd.log</string> <key>StandardErrorPath</key> <string>/var/run/bareos.log</string> <key>RunAtLoad</key> <true/> <key>WorkingDirectory</key> <string>/usr/local/bareos</string> <key>EnvironmentVariables</key> <dict> <key>LC_MESSAGES</key> <string>C</string> </dict> </dict> </plist>