I installed postgresql82.
After installed, I run below command.
$ sudo daemonic enable postgresql82
Then, it created
/Library/StartupItems/daemonic-postgresql82/daemonic-postgresql82.
But the processing of the stop is missing.
I added the processing of the stop. See below.
----- start -----
#!/bin/sh
# startup script for service postgresql82, created by daemonic
. /etc/rc.common
case "$1" in
start)
ConsoleMessage "Starting PostgreSQL database server"
if [ -x /sw/bin/pgsql.sh-8.2 ]; then
# run the daemon
/sw/bin/pgsql.sh-8.2 start
fi
;;
stop)
ConsoleMessage "Stopping PostgreSQL database server"
if [ -x /sw/bin/pgsql.sh-8.2 ]; then
# stop the daemon
/sw/bin/pgsql.sh-8.2 stop
fi
;;
esac
exit 0
----- end -----
Need not I add the processing of the stop?
Thanks, kouji.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users