[darkstat] Improvement for MacOS

Rainer Müller raimue at macports.org
Thu Jun 19 10:29:37 PDT 2008


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.

I am CC'ing the maintainer of darkstat in MacPorts.

> 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.

Have a look at startupitem.* commands for Portfiles, they can already 
create most of this stuff automatically for you.

> 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...)

Yes, we usually use 'org.macports.<portname>' (e.g. 
'org.macports.apache2') and others.

> 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 :)
> 
> What do you think of all of this?

As usual: Patch welcomed ;-)

Rainer


More information about the macports-users mailing list