diff options
author | Steve Wills <swills@FreeBSD.org> | 2012-09-19 19:46:07 +0000 |
---|---|---|
committer | Steve Wills <swills@FreeBSD.org> | 2012-09-19 19:46:07 +0000 |
commit | a788c7d21d6c30b25d0d45f05e2dc0d9a1beeffd (patch) | |
tree | bf6670d7180d1bbfe6b383de3e955421aca420e3 /sysutils/xen-tools/files | |
parent | e74a9cdfcb50d6dc5ce75b93890ec966c88ca205 (diff) |
Notes
Diffstat (limited to 'sysutils/xen-tools/files')
-rw-r--r-- | sysutils/xen-tools/files/xe-daemon.in | 15 |
1 files changed, 8 insertions, 7 deletions
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" |