From 0ae207784495cd41432d47c962d7330388632eca Mon Sep 17 00:00:00 2001 From: Volker Stolz Date: Thu, 2 Dec 2004 11:40:28 +0000 Subject: Improve startup-script (bump PORTREV) PR: ports/74519 Submitted by: maintainer --- misc/proxyper/files/proxyper.sh | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'misc/proxyper/files/proxyper.sh') diff --git a/misc/proxyper/files/proxyper.sh b/misc/proxyper/files/proxyper.sh index 1a231d819df4..c4121906006f 100644 --- a/misc/proxyper/files/proxyper.sh +++ b/misc/proxyper/files/proxyper.sh @@ -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" -- cgit v1.2.3