summaryrefslogtreecommitdiff
path: root/misc/proxyper/files/proxyper.sh
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2004-12-02 11:40:28 +0000
committerVolker Stolz <vs@FreeBSD.org>2004-12-02 11:40:28 +0000
commit0ae207784495cd41432d47c962d7330388632eca (patch)
tree318f264a869a178b0cb4e82fb432e73e2035efe4 /misc/proxyper/files/proxyper.sh
parentAvoid buffer overflows. (diff)
Improve startup-script (bump PORTREV)
PR: ports/74519 Submitted by: maintainer
Diffstat (limited to '')
-rw-r--r--misc/proxyper/files/proxyper.sh18
1 files changed, 5 insertions, 13 deletions
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"