summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2012-09-19 19:46:07 +0000
committerSteve Wills <swills@FreeBSD.org>2012-09-19 19:46:07 +0000
commita788c7d21d6c30b25d0d45f05e2dc0d9a1beeffd (patch)
treebf6670d7180d1bbfe6b383de3e955421aca420e3
parentUpdate to 0.0.10. (diff)
- rc script cleanup
PR: ports/171775 Submitted by: Mark Felder <feld@feld.me> (maintainer)
Diffstat (limited to '')
-rw-r--r--sysutils/xen-tools/Makefile2
-rw-r--r--sysutils/xen-tools/files/xe-daemon.in15
2 files changed, 9 insertions, 8 deletions
diff --git a/sysutils/xen-tools/Makefile b/sysutils/xen-tools/Makefile
index 8f7fbacda048..57dea7d1aed7 100644
--- a/sysutils/xen-tools/Makefile
+++ b/sysutils/xen-tools/Makefile
@@ -6,7 +6,7 @@
PORTNAME= xen-tools
PORTVERSION= 4.1.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
DISTNAME= xen-${PORTVERSION}
diff --git a/sysutils/xen-tools/files/xe-daemon.in b/sysutils/xen-tools/files/xe-daemon.in
index d261bcde5c2f..980ecc256b5e 100644
--- a/sysutils/xen-tools/files/xe-daemon.in
+++ b/sysutils/xen-tools/files/xe-daemon.in
@@ -1,7 +1,9 @@
#!/bin/sh
+# $FreeBSD$
+#
# PROVIDE: xe_daemon
-# REQUIRE: login
+# REQUIRE: LOGIN
# KEYWORD: nojail shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
@@ -9,20 +11,19 @@
#
# xe_daemon_enable (bool): Set to NO by default.
# Set it to YES to enable xe_daemon.
-#
. /etc/rc.subr
name=xe_daemon
rcvar=xe_daemon_enable
-command="%%PREFIX%%/sbin/xe_wrapper"
-command_interpreter="/bin/sh -T"
-command_args="%%PREFIX%%/sbin/xe-daemon &"
-
load_rc_config $name
-pidfile="/var/run/xe_wrapper.pid"
: ${xe_daemon_enable="NO"}
+command="%%PREFIX%%/sbin/xe_wrapper"
+command_interpreter="/bin/sh -T"
+command_args='%%PREFIX%%/sbin/xe-daemon &'
+pidfile="/var/run/xe_wrapper.pid"
+
run_rc_command "$1"