Skip to content

Instantly share code, notes, and snippets.

@gigorok
Created July 9, 2014 15:00
Show Gist options
  • Save gigorok/4458606c515e103e0279 to your computer and use it in GitHub Desktop.
Save gigorok/4458606c515e103e0279 to your computer and use it in GitHub Desktop.
Restart syslog on Mac OS
~#: launchctl unload /System/Library/LaunchDaemons/com.apple.syslogd.plist
~#: launchctl load /System/Library/LaunchDaemons/com.apple.syslogd.plist
@gigorok
Copy link
Author

gigorok commented Jul 10, 2014

or
~# ps -ax |grep syslog
35739 ?? 0:05.92 /usr/sbin/syslogd
42499 ttys006 0:00.00 grep syslog
~# kill -HUP 35739

@pjg
Copy link

pjg commented Apr 17, 2017

sudo killall -HUP syslogd is simpler. launchctl won't work on modern MacOS:

<Error>: Caller not allowed to perform action: launchctl.87066, action = service bootout, code = 150: Operation not permitted while System Integrity Protection is engaged, uid = 0, euid = 0, gid = 0, egid = 0, asid = 100005

@nitingupta89
Copy link

Not working for me

@n8felton
Copy link

n8felton commented May 21, 2021

sudo launchctl kickstart -kp system/com.apple.syslogd

@masukomi
Copy link

out of the above options @n8felton 's is the one that works for me in Ventura

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment