[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



>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:
_______________________________________________
freebsd-ports-bugs_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe_(_at_)_freebsd_(_dot_)_org"


Visit your host, monkey.org