Warning if service is started as non-root usee

(A Schueler) #1

I want to warn/notify the user if one tries to start my service without the sudo before brew services[…].
I‘m still new to programming so I can’t decide how to proceed. The plist starts a script that needs to be run as root.
Thanks for any help!

(Mike McQuaid) #2

You can’t do this unfortunately. You can add plist_options :startup => true in your formula, however, which will adjust the brew services caveats as you want.