Date: Mon, 29 Nov 2004 16:51:54 +0000 From: Tim Bishop <tim@bishnet.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: tim@bishnet.net Subject: ports/74519: [MAINTAINER] misc/proxyper: Improve startup script Message-ID: <E1CYokk-000Aav-PW@pendennis.ukc.ac.uk> Resent-Message-ID: <200411291700.iATH0chn068589@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1CYokk-000Aav-PW>