#!/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"