summaryrefslogtreecommitdiff
path: root/sysutils/xe-guest-utilities/files/xenguest.in
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/xe-guest-utilities/files/xenguest.in')
-rw-r--r--sysutils/xe-guest-utilities/files/xenguest.in11
1 files changed, 6 insertions, 5 deletions
diff --git a/sysutils/xe-guest-utilities/files/xenguest.in b/sysutils/xe-guest-utilities/files/xenguest.in
index 13ac7b68ed2d..b081e8db5192 100644
--- a/sysutils/xe-guest-utilities/files/xenguest.in
+++ b/sysutils/xe-guest-utilities/files/xenguest.in
@@ -15,10 +15,16 @@
. /etc/rc.subr
name=xenguest
+desc="Xen Guest Daemon"
rcvar=xenguest_enable
load_rc_config $name
+command="%%PREFIX%%/sbin/xe-daemon"
+pidfile=/var/run/xe-daemon.pid
+command_interpreter=/bin/sh
+command_args='-p ${pidfile} &'
+
autoxen=`sysctl kern.vm_guest`
autoxen="${autoxen#kern.vm_guest: }"
case "${autoxen}" in
@@ -30,9 +36,4 @@ xen)
;;
esac
-pidfile=/var/run/xe-daemon.pid
-command="%%PREFIX%%/sbin/xe-daemon"
-command_interpreter=/bin/sh
-command_args='-p ${pidfile} &'
-
run_rc_command "$1"