diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2014-09-27 14:02:36 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2014-09-27 14:02:36 +0000 |
commit | 32a778d18376636e9d5811e75df515803fbb0322 (patch) | |
tree | 2241ae6bc76d613c2333236976a2fc8016adb43b /sysutils/cbsd/files | |
parent | devel/rubygem-default_value_for: create port (diff) |
update to 10.1.0:
- Bsdconfig integration
- Bhyve: support for reboot virtual machine
- Removed old patches and periodic-tasks
- Ipnat support
(bugfix) getnics-by-ip: looking only IP prefix inet in the output ifconfig
(bugfix) bhyve: do not test the hard drive is empty, if you are booting from CD
(bugfix) Fix order of epair number and a/b side
PR: 193962
Submitted by: olevole@olevole.ru (maintainer)
Notes
Notes:
svn path=/head/; revision=369392
Diffstat (limited to 'sysutils/cbsd/files')
-rw-r--r-- | sysutils/cbsd/files/cbsdd.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sysutils/cbsd/files/cbsdd.in b/sysutils/cbsd/files/cbsdd.in index b8df5acdd434..5532a294b3e9 100644 --- a/sysutils/cbsd/files/cbsdd.in +++ b/sysutils/cbsd/files/cbsdd.in @@ -54,6 +54,8 @@ fi start_precmd=${name}_prestart stop_precmd=${name}_prestop stop_cmd=${name}_stop +reload_cmd=${name}_reload +extra_commands="reload" command="${toolsdir}/cbsdd" pidfile="/var/run/$name.pid" @@ -61,7 +63,6 @@ command_args="&" cbsdd_prestart() { %%PREFIX%%/bin/cbsd task mode=flushall > /dev/null 2>&1 - /usr/bin/find ${ftmpdir} -depth 1 -maxdepth 1 -type f -exec rm -f {} \; %%PREFIX%%/bin/cbsd sysinv mode=update %%PREFIX%%/bin/cbsd netinv @@ -82,4 +83,11 @@ cbsdd_stop() [ -f "${pidfile}" ] && kill -9 $( cat ${pidfile} ) } +cbsdd_reload() +{ + [ -f "${pidfile}" ] && kill -9 $( cat ${pidfile} ) > /dev/null 2>&1 + run_rc_command "start" + exit 0 +} + run_rc_command "$1" |