aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2010-08-21 04:48:16 +0800
committerlwhsu <lwhsu@FreeBSD.org>2010-08-21 04:48:16 +0800
commit5b1d525dcf541247890024dcaec6a80e735c94e9 (patch)
tree360bba2f4c87fc6daea23b094653d2c27fd4b488
parentd1ebd3ee8b76f8e3a8ced0f62369b8ba6b6517e9 (diff)
downloadfreebsd-ports-gnome-5b1d525dcf541247890024dcaec6a80e735c94e9.tar.gz
freebsd-ports-gnome-5b1d525dcf541247890024dcaec6a80e735c94e9.tar.zst
freebsd-ports-gnome-5b1d525dcf541247890024dcaec6a80e735c94e9.zip
- Tweak rc.d script:
* We prefer ports scripts to REQUIRE: LOGIN * KEYWORD: shutdown is preferred for scripts that start persistent services * Remove "empty default" variable assignment, which is neither necessary nor desirable Submitted by: dougb Approved by: Jui-Nan Lin <jnlin AT csie.nctu.edu.tw> (maintainer)
-rw-r--r--www/trafficserver/Makefile1
-rw-r--r--www/trafficserver/files/trafficserver.in5
2 files changed, 4 insertions, 2 deletions
diff --git a/www/trafficserver/Makefile b/www/trafficserver/Makefile
index 3e15754d4916..a395a944aed1 100644
--- a/www/trafficserver/Makefile
+++ b/www/trafficserver/Makefile
@@ -7,6 +7,7 @@
PORTNAME= trafficserver
PORTVERSION= 2.1.1
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_APACHE}
MASTER_SITE_SUBDIR= trafficserver
diff --git a/www/trafficserver/files/trafficserver.in b/www/trafficserver/files/trafficserver.in
index 6084be3ab832..477d7b5443c2 100644
--- a/www/trafficserver/files/trafficserver.in
+++ b/www/trafficserver/files/trafficserver.in
@@ -4,7 +4,8 @@
#
# PROVIDE: trafficserver
-# REQUIRE: DAEMON
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
. /etc/rc.subr
@@ -14,7 +15,7 @@ command="/usr/sbin/daemon -p ${pidfile} %%PREFIX%%/bin/traffic_server"
procname="%%PREFIX%%/bin/traffic_server"
load_rc_config "$name"
+
: ${trafficserver_enable="NO"}
-: ${trafficserver_flags=""}
run_rc_command "$1"