summaryrefslogtreecommitdiff
path: root/sysutils/cbsd/files/cbsdd.in
diff options
context:
space:
mode:
authorRoman Bogorodskiy <novel@FreeBSD.org>2016-09-24 18:03:43 +0000
committerRoman Bogorodskiy <novel@FreeBSD.org>2016-09-24 18:03:43 +0000
commitd5445b4ba6d54bd859539fc9a1231bc35c480418 (patch)
tree330565b77a4e0335fc190fba987fa9cfb298b752 /sysutils/cbsd/files/cbsdd.in
parentUpdate translate-toolkit (diff)
sysutils/cbsd: update to 11.0.0
- Tested on FreeBSD 11.0-RELEASE - Improve IPv6 support - Support ZVOL on ZFS-based system for bhyve vms - jexport/jimport scripts has been rewriten to support zvol images - Bhyve UEFI GOP support PR: 212966 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=422736
Diffstat (limited to 'sysutils/cbsd/files/cbsdd.in')
-rw-r--r--sysutils/cbsd/files/cbsdd.in13
1 files changed, 9 insertions, 4 deletions
diff --git a/sysutils/cbsd/files/cbsdd.in b/sysutils/cbsd/files/cbsdd.in
index 8c8bbc94da67..d4aa6072b702 100644
--- a/sysutils/cbsd/files/cbsdd.in
+++ b/sysutils/cbsd/files/cbsdd.in
@@ -57,11 +57,16 @@ command_args="&"
cbsdd_prestart() {
%%PREFIX%%/bin/cbsd task mode=flushall > /dev/null 2>&1
- %%PREFIX%%/bin/cbsd sysinv mode=update
- %%PREFIX%%/bin/cbsd netinv
+ . ${distdir}/initenv.subr
. ${inventory}
+ %%PREFIX%%/bin/cbsd sysinv mode=update
+ %%PREFIX%%/bin/cbsd netinv
+ update_hwinfo
+ update_netinfo
+ env sqlcolnames="1" ${miscdir}/sqlcli ${dbdir}/local.sqlite "SELECT * FROM local" > ${inventory}
+
[ -n "$nat_enable" ] && %%PREFIX%%/bin/cbsd naton
/usr/sbin/daemon -f ${rcddir}/jails-astart start
}
@@ -74,12 +79,12 @@ cbsdd_prestop()
cbsdd_stop()
{
- [ -f "${pidfile}" ] && kill -9 $( cat ${pidfile} )
+ [ -f "${pidfile}" ] && kill -9 $( /bin/cat ${pidfile} )
}
cbsdd_reload()
{
- [ -f "${pidfile}" ] && kill -9 $( cat ${pidfile} ) > /dev/null 2>&1
+ [ -f "${pidfile}" ] && kill -9 $( /bin/cat ${pidfile} ) > /dev/null 2>&1
run_rc_command "start"
exit 0
}