[leafnode-list] Re: leafnode on macosx

Alexander Johannes newsletter at nirgal.de
Fri Dec 19 11:05:19 CET 2008


Am 18.12.2008 um 21:13 schrieb Martin Smith:
> Matthias Andree wrote:
>> Martin Smith schrieb:
>>> Christian Ebert wrote:
>>
>>>> $ sudo launchctl load /Library/LaunchDaemons/org.leafnode.plist
>>>> $ sudo launchctl start org.leafnode
>>>>
>>>> To stop:
>>>>
>>>> $ sudo launchctl stop org.leafnode
>>>> $ sudo launchctl unload /Library/LaunchDaemons/org.leafnode.plist
>>> Tried it as above, when I try to subscibe in t'bird I get
>>> A News (NNTP) error occurred: launchproxy [395]: execv(): no such  
>>> file
>>> or directory
>>> well, that is true as far as the program string line goes,
>>> /usr/local/sbin does not exist, leafnode is in /opt/local/sbin,  
>>> but if I
>>> alter the plist to that value I get error connecting to localhost
>>> and attempting to start the service I get bind: operation not  
>>> permitted
>>> any further thoughts?
>>
>> SockServiceName nntp will resolve to port 119, which is  
>> privileged, thus,
>> super user powers required. That's what sudo is for.
>
> I am using sudo, nothing will work without it.

I think, that there is a little misconception here. Basically launchd  
(Mac OS X 10.4/5) runs with root-privileges and you have to tell him  
about the new service. Launchd is always running in the background  
(like inetd). In order to tell launchd about the new service, you  
need root-privileges, which you can get via sudo.
Just grab the leafnode-plist from the following adress:

   <http://www.kutilek.de/technik/news-macosx#launchd>

save it to /Library/LaunchDaemons/de.netzallee.leafnode.plist (file- 
name can be changed). Change the path to your binary and check the  
username, leafnode should running under and issue the following command:

   sudo launchctl load /Library/LaunchDaemons/ 
de.netzallee.leafnode.plist

After that, check your logs and via telnet or ps, if leafnode is  
running.

Alex



More information about the leafnode-list mailing list