Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dono42

macrumors regular
Original poster
Dec 22, 2018
105
24
New Hampshire, USA
Happily using load and unload subcommands for years, those subcommands are deprecated. I have a M1 mini that runs 24/7, one functions is a syslogd server collecting various error logs. I have a copy of the modified syslogd.plist to listen on port 514 ~/Library/LaunchDaemons so have been unloading the system syslogd.plist and loading the modified one.

Now after upgrading from Monterey to Ventura 13.6.7 those subcommands no longer work. An unload command fails, 'Unload failed: 5: Input/output error Try running `launchctl bootout` as root for richer errors'. Reading the man page leaves me with more questions than answers. I read the recommended alternative subcommands and tried replicate the load and unload functions. I can stop a service with 'launchctl bootout system/com.apple.syslogd' but cannot restart it with attempts with bootstrap or kickstart subcommands with or with out the path. I can get returns with no error messages but when I see if syslogd running it is not. Searching doesn't return much help mostly results with the same questions. I do have csrutil disabled. Any guidance is greatly appricated. Thanks
 
I've tried
Code:
sudo launchctl kickstart -k -p system/com.apple.syslogd
and it's working in Ventura 13.6.7.
You could try to give Full Disk Access to Terminal.

syslogd.jpg
 
  • Like
Reactions: dono42
Looks like adding Terminal to Full Disk Access worked. Thanks for the help!

M1-Mini:~ admin$ sudo launchctl bootout system/com.apple.syslogd
Password:
M1-Mini:~ admin$ sudo launchctl bootstrap system /Users/dono/Library/LaunchDaemons/com.apple.syslogd.plist
M1-Mini:~ admin$ netstat -an | grep 514
udp4 0 0 *.514 *.*
udp6 0 0 *.514 *.*
M1-Mini:~ admin$ ps aux | grep syslog
admin 1117 0.0 0.0 408626896 1328 s000 S+ 2:28PM 0:00.00 grep syslog
root 1113 0.0 0.0 408197488 1648 ?? Ss 2:27PM 0:00.01 /usr/sbin/syslogd
 
  • Like
Reactions: bogdanw
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.