port load/unload

Nick Ludlam nick at macports.org
Sat Sep 18 12:34:32 PDT 2010


On 18 Sep 2010, at 20:15, Jeremy Huddleston wrote:

> On Sep 18, 2010, at 12:01, Nick Ludlam wrote:
> 
>> ###########################################################
>> # You can run <port name> now, and configure it to start
>> # automatically during boot by executing the following
>> # command:
>> # 
>> # sudo port load <port name>
>> # 
>> # To stop <port name>, and prevent it from from starting
>> # automatically during boot, execute the following command:
>> #
>> # sudo port unload <port name>
>> ###########################################################
>> 
>> Thoughts?
> 
> Do we "do the right thing" by not having them use 'sudo' for LaunchAgents on Snow Leopard?

Well in my case, the port I'm loading uses setgid() to run as 'nobody', so it does require root privs, else you see:

18/09/2010 20:32:17	org.macports.beanstalkd[10277]	/opt/local/bin/beanstalkd: beanstalkd.c:95 in su: setgid(-2 "nobody"): Operation not permitted

in the logs. I'm sure there are many cases where using sudo is unavoidable.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20100918/a319a8cb/attachment.html>


More information about the macports-dev mailing list