init script

Daniel J. Luke dluke at geeklair.net
Mon Mar 26 14:14:29 PDT 2012


On Mar 24, 2012, at 3:19 PM, Jeremy Lavergne wrote:
> I had to write a few for a laptop tracker at a previous job. After seeing how each key works and reading the whole man page, I've come to love launchd quite a bit :-) ...to the point I wonder why we still have daemondo in MacPorts.


daemondo is great for things that don't quite fit into the launchd way of things (eg., you need to run a script to startup and stop the service, the service insists on detaching itself so launchd will think it died, you need to perform an action on a system configuration change [restart-netchange, restart-wakeup, restart-dist-notify ...]).

we can (and maybe should) transition to not using it in cases where it doesn't add value, though (which would be when we're using startupitem.executable without startupitem.pidfile or startupitem.netchange)

--
Daniel J. Luke                                                                   
+========================================================+                        
| *---------------- dluke at geeklair.net ----------------* |                          
| *-------------- http://www.geeklair.net -------------* |                          
+========================================================+                        
|   Opinions expressed are mine and do not necessarily   |                          
|          reflect the opinions of my employer.          |                          
+========================================================+





More information about the macports-users mailing list