Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Mar 2006 11:56:05 GMT
From:      Chris St Denis <chris@ctgameinfo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/94137: databases/pgpool has no rc script. One is attached here with a makefile diff.
Message-ID:  <200603061156.k26Bu5is084137@www.freebsd.org>
Resent-Message-ID: <200603061200.k26C0Io4011030@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603061156.k26Bu5is084137>