aboutsummaryrefslogtreecommitdiffstats
path: root/misc/proxyper
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2004-12-02 19:40:28 +0800
committervs <vs@FreeBSD.org>2004-12-02 19:40:28 +0800
commit316fbe13fda378c9f52d7a9b8deb474797e36352 (patch)
treee3a48a2f0c05b8d121b517c4d4714d83f83e859d /misc/proxyper
parent9479e4412be80ee638828157126768cda6f38950 (diff)
downloadfreebsd-ports-gnome-316fbe13fda378c9f52d7a9b8deb474797e36352.tar.gz
freebsd-ports-gnome-316fbe13fda378c9f52d7a9b8deb474797e36352.tar.zst
freebsd-ports-gnome-316fbe13fda378c9f52d7a9b8deb474797e36352.zip
Improve startup-script (bump PORTREV)
PR: ports/74519 Submitted by: maintainer
Diffstat (limited to 'misc/proxyper')
-rw-r--r--misc/proxyper/Makefile1
-rw-r--r--misc/proxyper/files/proxyper.sh18
2 files changed, 6 insertions, 13 deletions
diff --git a/misc/proxyper/Makefile b/misc/proxyper/Makefile
index 3226bf1d995f..6b2341a9f23f 100644
--- a/misc/proxyper/Makefile
+++ b/misc/proxyper/Makefile
@@ -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/
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"