View | Details | Raw Unified | Return to bug 204763
Collapse All | Expand All

(-)sysutils/xe-guest-utilities/files/xenguest.in (-6 / +9 lines)
Lines 8-29 Link Here
8
#
8
#
9
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
9
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
10
# to enable this service:
10
# to enable this service:
11
#
11
# xenguest_enable (bool): Set according to kern.vm_guest by default.
12
# xenguest_enable (bool): Set to NO by default.
13
#       Set it to YES to enable xenguest.
14
12
15
. /etc/rc.subr
13
. /etc/rc.subr
16
14
15
checkvm_cmd="/sbin/sysctl kern.vm_guest | /usr/bin/grep xen > /dev/null"
16
17
name=xenguest
17
name=xenguest
18
rcvar=xenguest_enable
18
rcvar=xenguest_enable
19
19
20
load_rc_config $name
20
start_precmd="${checkvm_cmd}"
21
21
unset start_cmd
22
: ${xenguest_enable:=NO}
22
stop_precmd="${checkvm_cmd}"
23
unset stop_cmd
23
24
24
pidfile=/var/run/xe-daemon.pid
25
pidfile=/var/run/xe-daemon.pid
25
command="%%PREFIX%%/sbin/xe-daemon"
26
command="%%PREFIX%%/sbin/xe-daemon"
26
command_interpreter=/bin/sh
27
command_interpreter=/bin/sh
27
command_args='-p ${pidfile} &'
28
command_args='-p ${pidfile} &'
28
29
30
load_rc_config $name
31
[ -z "$xenguest_enable" ] && xenguest_enable="YES"
29
run_rc_command "$1"
32
run_rc_command "$1"

Return to bug 204763