2005-03-18 00:53:56 +01:00
|
|
|
#!@RCD_SCRIPTS_SHELL@
|
|
|
|
#
|
2005-11-08 01:47:35 +01:00
|
|
|
# $NetBSD: xend.sh,v 1.5 2005/11/08 00:47:35 jlam Exp $
|
2005-03-18 00:53:56 +01:00
|
|
|
#
|
|
|
|
# PROVIDE: xend
|
|
|
|
# REQUIRE: disks network
|
|
|
|
|
2005-11-08 01:47:35 +01:00
|
|
|
. /etc/rc.subr
|
2005-03-18 00:53:56 +01:00
|
|
|
|
|
|
|
name="xend"
|
|
|
|
rcvar=$name
|
|
|
|
command="@PREFIX@/sbin/xend"
|
2005-04-01 21:06:12 +02:00
|
|
|
command_interpreter="@RCD_INTERPRETER@"
|
2005-05-24 18:02:08 +02:00
|
|
|
start_cmd="@ECHO@ Starting ${name}. && ${command} start"
|
|
|
|
start_precmd="test_kern_privcmd"
|
2005-07-13 04:12:59 +02:00
|
|
|
privcmd_path="@PROCPATH@/xen/privcmd"
|
2005-05-24 18:02:08 +02:00
|
|
|
|
|
|
|
test_kern_privcmd()
|
|
|
|
{
|
2005-07-13 04:12:59 +02:00
|
|
|
if [ ! -f ${privcmd_path} ]; then
|
|
|
|
@ECHO@ "${name}: Cannot find ${privcmd_path}!"
|
2005-05-24 18:02:08 +02:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
}
|
2005-03-18 00:53:56 +01:00
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|