ports/94137: databases/pgpool has no rc script. One is attached here with a makefile diff.

Chris St Denis chris at ctgameinfo.com
Mon Mar 6 12:00:22 UTC 2006


>Number:         94137
>Category:       ports
>Synopsis:       databases/pgpool has no rc script. One is attached here with a makefile diff.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 06 12:00:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Chris St Denis
>Release:        6.0
>Organization:
>Environment:
N/a
>Description:
pgpool is a deamon but has no rc script. 
>How-To-Repeat:
n/a
>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
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list