I have this in /Library/LaunchDaemons/org.cons.rc-local.plist:
/etc/rc.local is a sh script that leaves a mark in /tmp so that I verify that it gets invoked. It does not. The script is mode 755 and owned by root.
I activated it with launchctl.
No logfile mentions anything about this, no error messages, it is like no plist is present at all.
Can anybody spot what is wrong? How do I debug this? How do I get macOS to log anything about this?
Thank you.
Code:
<?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>org.cons.rc-local</string>
<key>WorkingDirectory</key>
<string>/tmp</string>
<key>ProgramArguments</key>
<array>
<string>/bin/sh</string>
<string>/etc/rc.local</string>
</array>
<key>StandardErrorPath</key>
<string>/private/var/log/org.org.cons.rc-local.log</string>
<key>StandardOutPath</key>
<string>/private/var/log/org.org.cons.rc-local.log</string>
</dict>
</plist>
/etc/rc.local is a sh script that leaves a mark in /tmp so that I verify that it gets invoked. It does not. The script is mode 755 and owned by root.
I activated it with launchctl.
No logfile mentions anything about this, no error messages, it is like no plist is present at all.
Can anybody spot what is wrong? How do I debug this? How do I get macOS to log anything about this?
Thank you.