I am constantly getting the following messages in system log:
com.apple.launchd.peruser.0 (homebrew.mxcl.memcached[PID]) Exited with code : 64 com.apple.launchd.peruser.0 (homebrew.mxcl.memcached) Throttling respawn: Will start in 10 seconds.
After searching online I learned that it is caused by the process failing to start. And a solution is to unload the plist from launchd with launchctl unload -w /Library/LaunchAgents/homebrew.mxcl.memcached.plist, and launchctl remove homebrew.mxcl.memcached, which I have done.
Note that the peruser.0 in the messages indicates that it is running 'peruser' for the user root. And I am logged in as root user to unload the homebrew.mxcl.memcached entries and remove the labels in launchd.
I have confirmed with launchctl list that memcached is no longer there and I am getting the intended error messages as well when try to unload/remove memcached in launchctl too. I also get 'launchctl stop error: No such process' when I do launchctl stop homebrew.mxcl.memcached. It looks like the memcached plist was successfully deleted from launchctl.
However the process still seems to be loaded at the user level for the root user as the what I did did not stop the messages. When I log off as root and login as another user, the messages stops, and when I log back in as root the messages starts again.
I am very confused on why the process is still triggered for the root user. Since all indications show that the plist was removed from launchd.
Any help/hints would be greatly appreciated.