From: Roger Pau Monne <roger.pau@citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Wei Liu <wei.liu2@citrix.com>,
Ian Jackson <ian.jackson@eu.citrix.com>,
Roger Pau Monne <roger.pau@citrix.com>
Subject: [PATCH 4/4] init/FreeBSD: add rc control variables
Date: Mon, 19 Dec 2016 15:02:04 +0000 [thread overview]
Message-ID: <20161219150204.4481-5-roger.pau@citrix.com> (raw)
In-Reply-To: <20161219150204.4481-1-roger.pau@citrix.com>
Those are used in order to decide which scripts are executed at init.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
---
tools/hotplug/FreeBSD/rc.d/xencommons.in | 5 ++++-
tools/hotplug/FreeBSD/rc.d/xendriverdomain.in | 5 ++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/tools/hotplug/FreeBSD/rc.d/xencommons.in b/tools/hotplug/FreeBSD/rc.d/xencommons.in
index 81f69f3..2fcd84a 100644
--- a/tools/hotplug/FreeBSD/rc.d/xencommons.in
+++ b/tools/hotplug/FreeBSD/rc.d/xencommons.in
@@ -11,6 +11,7 @@ LD_LIBRARY_PATH="${libdir}"
export LD_LIBRARY_PATH
name="xencommons"
+rcvar="xencommons_enable"
start_precmd="xen_precmd"
start_cmd="xen_startcmd"
stop_cmd="xen_stop"
@@ -23,6 +24,9 @@ XENCONSOLED_PIDFILE="@XEN_RUN_DIR@/xenconsoled.pid"
#XENCONSOLED_TRACE="@XEN_LOG_DIR@/xenconsole-trace.log"
#XENSTORED_TRACE="@XEN_LOG_DIR@/xen/xenstore-trace.log"
+load_rc_config $name
+: ${xencommons_enable:=no}
+
xen_precmd()
{
mkdir -p @XEN_LIB_STORED@ || exit 1
@@ -116,5 +120,4 @@ xen_status()
fi
}
-load_rc_config $name
run_rc_command "$1"
diff --git a/tools/hotplug/FreeBSD/rc.d/xendriverdomain.in b/tools/hotplug/FreeBSD/rc.d/xendriverdomain.in
index c71871c..1384fdd 100644
--- a/tools/hotplug/FreeBSD/rc.d/xendriverdomain.in
+++ b/tools/hotplug/FreeBSD/rc.d/xendriverdomain.in
@@ -13,12 +13,16 @@ LD_LIBRARY_PATH="${libdir}"
export LD_LIBRARY_PATH
name="xendriverdomain"
+rcvar="xendriverdomain_enable"
start_cmd="xendriverdomain_startcmd"
stop_cmd="xendriverdomain_stop"
extra_commands=""
XLDEVD_PIDFILE="@XEN_RUN_DIR@/xldevd.pid"
+load_rc_config $name
+: ${xendriverdomain_enable:=no}
+
xendriverdomain_start()
{
printf "Starting xenservices: xl devd."
@@ -38,5 +42,4 @@ xendriverdomain_stop()
wait_for_pids $rc_pids
}
-load_rc_config $name
run_rc_command "$1"
--
2.10.1 (Apple Git-78)
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-12-19 15:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-19 15:02 [PATCH 0/4] init/FreeBSD: Minor fixes for FreeBSD init scripts Roger Pau Monne
2016-12-19 15:02 ` [PATCH 1/4] init/FreeBSD: set correct PATH for xl devd Roger Pau Monne
2016-12-21 11:48 ` Wei Liu
2016-12-19 15:02 ` [PATCH 2/4] init/FreeBSD: remove xendriverdomain_precmd Roger Pau Monne
2016-12-21 11:48 ` Wei Liu
2016-12-21 12:13 ` Roger Pau Monne
2016-12-19 15:02 ` [PATCH 3/4] init/FreeBSD: fix xencommons so it can only be launched by Dom0 Roger Pau Monne
2016-12-21 11:48 ` Wei Liu
2016-12-19 15:02 ` Roger Pau Monne [this message]
2016-12-21 11:49 ` [PATCH 4/4] init/FreeBSD: add rc control variables Wei Liu
2016-12-21 12:12 ` Roger Pau Monne
2016-12-21 16:38 ` Wei Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161219150204.4481-5-roger.pau@citrix.com \
--to=roger.pau@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).