aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/netams/files
diff options
context:
space:
mode:
authoritetcu <itetcu@FreeBSD.org>2006-06-27 06:00:01 +0800
committeritetcu <itetcu@FreeBSD.org>2006-06-27 06:00:01 +0800
commit45687fdbe21587b4db275aae5a0310b5da36eff8 (patch)
tree5598d34885c9f5439bf48a3b36c9ca73a0df7e96 /net-mgmt/netams/files
parent451934d4bcda5c2c372dd45110ebf75e7d2ccfdc (diff)
downloadfreebsd-ports-gnome-45687fdbe21587b4db275aae5a0310b5da36eff8.tar.gz
freebsd-ports-gnome-45687fdbe21587b4db275aae5a0310b5da36eff8.tar.zst
freebsd-ports-gnome-45687fdbe21587b4db275aae5a0310b5da36eff8.zip
- fix rc.d script to check if the daemon is started
- and since we change so much of it also move it to files/netams - bump PORTREVISION PR: ports/99322 Submitted by: Vasiliy P. Melnik <basil@gu.net> Approved by: maintainer
Diffstat (limited to 'net-mgmt/netams/files')
-rw-r--r--net-mgmt/netams/files/netams.in (renamed from net-mgmt/netams/files/netams.sh.in)19
1 files changed, 7 insertions, 12 deletions
diff --git a/net-mgmt/netams/files/netams.sh.in b/net-mgmt/netams/files/netams.in
index 8b7ea67b0d47..9f2f9614d90e 100644
--- a/net-mgmt/netams/files/netams.sh.in
+++ b/net-mgmt/netams/files/netams.in
@@ -1,14 +1,11 @@
#!/bin/sh
# $FreeBSD$
-
+#
# PROVIDE: netams
# REQUIRE: NETWORKING
# KEYWORD: shutdown
-# Define these netams_* variables in one of these files:
-# /etc/rc.conf
-# /etc/rc.conf.local
-# /etc/rc.conf.d/netams
+# Add the following line to /etc/rc.conf to enable netams
#
# netams_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable netams.
@@ -17,21 +14,19 @@
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
-netams_enable=${netams_enable-"NO"}
-netams_config=${netams_config-"%%PREFIX%%/etc/netams.cfg"}
-
-netams_pidfile="/var/run/netams.pid"
. %%RC_SUBR%%
name="netams"
rcvar=`set_rcvar`
-command="%%PREFIX%%/libexec/netams"
load_rc_config $name
-pidfile="${netams_pidfile}"
+:${netams_enable="NO"}
+:${netams_config="/usr/local/etc/netams.cfg"}
-start_cmd="echo \"Starting ${name}.\"; ${command} -ldf ${netams_config} > /dev/null"
+pidfile="/var/run/netams.pid"
+command="/usr/local/libexec/netams"
+command_args="-lf ${netams_config} > /dev/null &"
run_rc_command "$1"