aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2010-05-30 02:26:54 +0800
committerdougb <dougb@FreeBSD.org>2010-05-30 02:26:54 +0800
commit81cca5e56805ace5763b568380ae06a3c4826234 (patch)
treeebc7945c8317eadda007db90fb645cb67da77a6d /net-mgmt
parente40e8d5ad6b5a45f4300e4efa4fc09dddb9c0779 (diff)
downloadfreebsd-ports-gnome-81cca5e56805ace5763b568380ae06a3c4826234.tar.gz
freebsd-ports-gnome-81cca5e56805ace5763b568380ae06a3c4826234.tar.zst
freebsd-ports-gnome-81cca5e56805ace5763b568380ae06a3c4826234.zip
Tune up rc.d file
Approved by: maintainer timeout
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/netams/Makefile1
-rw-r--r--net-mgmt/netams/files/netams.in20
2 files changed, 11 insertions, 10 deletions
diff --git a/net-mgmt/netams/Makefile b/net-mgmt/netams/Makefile
index eabb633ab1fe..854f102cb102 100644
--- a/net-mgmt/netams/Makefile
+++ b/net-mgmt/netams/Makefile
@@ -7,6 +7,7 @@
PORTNAME= netams
PORTVERSION= 3.4.5
+PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= http://www.netams.com/files/
diff --git a/net-mgmt/netams/files/netams.in b/net-mgmt/netams/files/netams.in
index a4aa56864f4b..934ce50c9849 100644
--- a/net-mgmt/netams/files/netams.in
+++ b/net-mgmt/netams/files/netams.in
@@ -1,10 +1,10 @@
#!/bin/sh
-# $FreeBSD$
+# $FreeBSD$
+#
# PROVIDE: netams
-# REQUIRE: NETWORKING
+# REQUIRE: NETWORKING mysql
# KEYWORD: shutdown
-# REQUIRE: mysql
# Define these netams_* variables in one of these files:
# /etc/rc.conf
@@ -15,13 +15,9 @@
# Set it to "YES" to enable netams.
# netams_config (str): Custom configuration file to be passed
# to netams.
+# netams_pidfile (str): Path to the pid file (/var/run/netams.pid)
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
-#
-netams_enable=${netams_enable-"NO"}
-netams_config=${netams_config-"%%PREFIX%%/etc/netams/netams.conf"}
-
-netams_pidfile="/var/run/netams.pid"
. /etc/rc.subr
@@ -31,8 +27,12 @@ command="%%PREFIX%%/libexec/netams"
load_rc_config $name
-pidfile="${netams_pidfile}"
+netams_enable=${netams_enable:-"NO"}
+netams_config=${netams_config:-"%%PREFIX%%/etc/netams/netams.conf"}
+pidfile="${netams_pidfile:-/var/run/netams.pid}"
+
+required_files="$netams_config"
-start_cmd="echo \"Starting ${name}.\"; ${command} -lf ${netams_config} > /dev/null"
+command_args="-lf ${netams_config} > /dev/null"
run_rc_command "$1"