Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Services command results in startup errors when run with sudo #26214
I've just started using the
In both cases, I didn't get any errors from the
It appears to be a permissions/ownership problem caused by my user name being added to the generated plist file here. I updated those lines to skip making the UserName edits if the command has been run as root. That has fixed the issue for me, and the non-sudo version of the command still works, as well, but I'm not sure if the assumption I've made in these changes is a valid one for all cases.
Thanks for taking a look! And here is the output the config, etc. commands.