aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/xe-guest-utilities/files/xenguest.in
blob: e3e1e75ca745577b1f56a2f4f011d15c5bfdfe43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

# $FreeBSD$
#
# PROVIDE: xenguest
# REQUIRE: LOGIN
# KEYWORD: nojail shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# xenguest_enable (bool): Set to NO by default.
#       Set it to YES to enable xenguest.

. /etc/rc.subr

name=xenguest
rcvar=xenguest_enable

load_rc_config $name

: ${xe_daemon_enable="NO"}

pidfile="/var/run/xe-daemon.pid"
command="%%PREFIX%%/sbin/xe-daemon"
command_interpreter="/bin/sh"
command_args='-p $pidfile &'

run_rc_command "$1"