pgpool is a deamon but has no rc script. Fix: RC script in rc.subr format for pgpool listed below. I based this off the rc script for rsyncd. Numbers added to filename to try and make it run after postgresql (if on localhost) but before any client programs that may refrence it. 022.pgpool.sh.in --------------------------------------------------- #!/bin/sh # # # PROVIDE: %%NAME%% # REQUIRE: LOGIN # BEFORE: securelevel # KEYWORD: FreeBSD shutdown # Add the following line to /etc/rc.conf to enable `%%NAME%%': # #%%NAME%%_enable="YES" # . "%%RC_SUBR%%" name="%%NAME%%" rcvar=`set_rcvar` command="%%PREFIX%%/bin/%%NAME%%" stop_cmd="$command stop" required_files="%%PREFIX%%/etc/$name.cfg" # read configuration and set defaults load_rc_config "$name" : ${%%NAME%%_enable="NO"} run_rc_command "$1" ---------------------------------------- and a diff of the Makefile ---------------------------------------- --- Makefile.orig Mon Mar 6 03:48:49 2006 +++ Makefile Mon Mar 6 03:49:09 2006 @@ -15,6 +15,7 @@ USE_GMAKE= yes GNU_CONFIGURE= yes +USE_RC_SUBR= 022.pgpool.sh PORTDOCS= README AUTHORS COPYING ChangeLog INSTALL NEWS TODO README.euc_jp How-To-Repeat: n/a
State Changed From-To: open->feedback Awaiting maintainers feedback
State Changed From-To: feedback->closed Committed, with minor changes. Thanks!