ports/74519: [MAINTAINER] misc/proxyper: Improve startup script

Tim Bishop tim at bishnet.net
Mon Nov 29 17:00:38 UTC 2004


>Number:         74519
>Category:       ports
>Synopsis:       [MAINTAINER] misc/proxyper: Improve startup script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 29 17:00:37 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Tim Bishop
>Release:        FreeBSD 5.2.1-RELEASE-p9 i386
>Organization:
>Environment:
System: FreeBSD pendennis.ukc.ac.uk 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #1: Sun Jul 18 15:23:54 BST 2004
>Description:
The startup script here can be improved and made simpler. The result
is that the necessary checks will be done to see if the process is
running before stopping or starting.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- proxyper-341b_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /u1/freebsd/cvs/ports/misc/proxyper/Makefile,v
retrieving revision 1.20
diff -u -r1.20 Makefile
--- Makefile	14 Nov 2004 22:47:05 -0000	1.20
+++ Makefile	29 Nov 2004 16:50:38 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	proxyper
 PORTVERSION=	341b
+PORTREVISION=	1
 CATEGORIES=	misc
 MASTER_SITES=	ftp://ftp.distributed.net/pub/dcti/proxyper/ \
 		http://http.distributed.net/pub/dcti/proxyper/
Index: files/proxyper.sh
===================================================================
RCS file: /u1/freebsd/cvs/ports/misc/proxyper/files/proxyper.sh,v
retrieving revision 1.4
diff -u -r1.4 proxyper.sh
--- files/proxyper.sh	25 Aug 2004 09:17:55 -0000	1.4
+++ files/proxyper.sh	29 Nov 2004 16:49:11 -0000
@@ -9,28 +9,20 @@
 proxyper_enable=${proxyper_enable:-"NO"}
 
 dir="%%BINDIR%%"
+user="nobody"
 
 . %%RC_SUBR%%
 
 name="proxyper"
 rcvar=`set_rcvar`
 
+pidfile=${dir}/rc5desproxy.pid
 required_files=${dir}/${name}.ini
 
-start_cmd="${name}_start"
-stop_cmd="${name}_stop"
+proxyper_user=${user}
 
-proxyper_start()
-{
-	echo -n " proxyper" 
-	su -m nobody -c "${dir}/proxyper" >/dev/null 2>&1 &
-}
-
-proxyper_stop()
-{
-	kill `cat ${dir}/rc5desproxy.pid`
-	echo -n " proxyper" 
-}
+command=${dir}/${name}
+command_args=">/dev/null 2>&1 &"
 
 load_rc_config $name
 run_rc_command "$1"
--- proxyper-341b_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list