You can test to see if it is launched with launchctl list which is very low overhead, and then launch if and only if the item is not on the list.
I agree it would be better to have a standard, pre-shell way of doing this. The only thing that comes to mind is having a master lanchd item that points to fink LaunchAgent and LaunchDaemon directories upon system startup. On Mon, 15 Aug 2005, Dave Vasilevsky wrote: > > On Aug 13, 2005, at 1:28 PM, William Scott wrote: > > > Is there a way for fink to install a Launchd file into /Library/ > > LaunchAgents for 10.4 packages? > > Not yet. It would not be terribly hard however to > > 1) Make a version of Daemonic that uses launchd instead of startup > items but is otherwise entirely compatible, and/or > > 2) Create a new syntax for installing launchd plist files. If there's > not already a command line tool to enable/distable a launchd daemon, > that would be needed as well. > > Anybody who wants to work on either of these is welcome. > > > As a follow-up, would it be permissible to have a /sw/etc/profile.d/ > > foo.(c)sh file that has a line in it like > > > > launchctl load /sw/path/to/my/package/LaunchAgent ? > > You want to scan the LaunchAgents every time you open a shell!? There > must be a better way than that. > > Dave > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Fink-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-devel
