[darkstat] Improvement for MacOS

Ryan Schmidt ryandesign at macports.org
Thu Jun 19 10:58:42 PDT 2008


On Jun 19, 2008, at 4:47 AM, Damien Clauzel wrote:

> I have been briefly working with the creator of darkstat, Emil  
> Mikulic,
> for improving the use of this software of MacOS. The idea is to have
> darkstat working nicely as a clean service.
>
> For doing this, Emil have made some changes in the code for adding  
> a new
> option (--no-daemon, see attached patch) for preventing darkstat to  
> fork
> when started, and I have created a launchd plist config file for  
> setting
> up darkstat as a MacOS service (without the need of third part tools
> like daemonic).
>
> The method I am using is to drop a service file
> into /Library/LaunchDaemons/ (see attached document), and let  
> launchd do
> its job. This approach means that darkstat run as a system wide  
> service.
>
> The trick is just to use a different label for each distribution (fink
> and macports) in order to avoid conflict in case darkstat is installed
> from both of them (not a smart move, but anyway...)
>
> What I would like to do is to validate those modifications with  
> both of
> the fink and macports mainteneurs of darkstat, and to make a new  
> release
> (so I can have it directly on my machines without the need of patching
> manually; yes, I am lazy :)

For MacPorts you would generally use the startupitem directives to  
have MacPorts create a launchd plist for you. See the Guide:

http://guide.macports.org/#reference.startupitems



More information about the macports-users mailing list