This is usually handled in Fink by the daemonic package.

At present, it still uses SystemStarter (deprecated in Mac OS X 10.5) but it still works OK.

The syntax is not so well documented, but you can see it in info files like openldap-ssl.info. You can specify pidfiles, executables to run, parameters etc.

Once you have a package xyz with a daemonic file specified installed, then command "daemonic enable xyz" will create a file /Library/ StartupItems/daemonic-xyz which will launch the service at boot. "daemonic remove xyz" removes it. You can manually start and stop the service with SystemStarter ("SystemStarter start daemonic-xyz").

BTW.. this question would probably be better targeted at fink-devel rather than fink-users.

Cheers,
Phil.

On 13/11/2007, at 2:43 AM, [EMAIL PROTECTED] wrote:


i'm wondering where is the best place to put my startup scripts in leopard.
i mean scripts to start services like postgresql etc.

would be nice to have systemv-like scripts in some directory like / etc/rc,
so i can run:
/etc/rc/postgres start
/etc/rc/postgres stop
and so on.

but where to put '/etc/rc/postgres start|stop' to start/stop my services at
system startup/shutdown?

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to