xend.sh fixes:
- set command_interpreter, so that rc.subr(8) can find the process(es). - /usr/pkg/sbin/xend {stop,restart} don't to what we expect, to let rc.subr do it instead. Bump PKGREVISION. Should fix pkg/29847.
This commit is contained in:
parent
a3957edb6b
commit
68fdfc4859
2 changed files with 6 additions and 7 deletions
|
@ -1,9 +1,9 @@
|
|||
# $NetBSD: Makefile,v 1.5 2005/03/27 15:58:24 bouyer Exp $
|
||||
# $NetBSD: Makefile,v 1.6 2005/04/01 19:06:12 bouyer Exp $
|
||||
#
|
||||
|
||||
DISTNAME= xen-2.0.3-src
|
||||
PKGNAME= xentools20-2.0.3
|
||||
PKGREVISION= 3
|
||||
PKGREVISION= 4
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
@ -51,6 +51,7 @@ SUBST_SED.paths= -e "s|/usr/sbin|${PREFIX}/sbin|g"
|
|||
SUBST_MESSAGE.paths= "Fixing hardcoded paths."
|
||||
|
||||
RCD_SCRIPTS= xend
|
||||
FILES_SUBST+= RCD_INTERPRETER=${PYTHONBIN}
|
||||
|
||||
pre-build:
|
||||
${MKDIR} ${WRKSRC}/libxc/xen/NetBSD
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!@RCD_SCRIPTS_SHELL@
|
||||
#
|
||||
# $NetBSD: xend.sh,v 1.1 2005/03/17 23:53:56 bouyer Exp $
|
||||
# $NetBSD: xend.sh,v 1.2 2005/04/01 19:06:12 bouyer Exp $
|
||||
#
|
||||
# PROVIDE: xend
|
||||
# REQUIRE: disks network
|
||||
|
@ -13,10 +13,8 @@ fi
|
|||
name="xend"
|
||||
rcvar=$name
|
||||
command="@PREFIX@/sbin/xend"
|
||||
ctl_command="@PREFIX@/sbin/xend"
|
||||
start_cmd="echo starting ${command} && ${command} start"
|
||||
stop_cmd="echo stopping ${command} && ${command} stop"
|
||||
restart_cmd="echo restarting ${command} && ${command} restart"
|
||||
command_interpreter="@RCD_INTERPRETER@"
|
||||
start_cmd="echo starting ${name}. && ${command} start"
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
Loading…
Reference in a new issue