FreeBSD Bugzilla – Attachment 185532 Details for
Bug 221593
sysutils/bareos-server [patch] provide graceful reload capability
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to bareos-dir RC script to implement a graceful reload
bareos-dir-rc.patch (text/plain), 963 bytes, created by
Douglas K. Rand
on 2017-08-17 15:49:38 UTC
(
hide
)
Description:
Patch to bareos-dir RC script to implement a graceful reload
Filename:
MIME Type:
Creator:
Douglas K. Rand
Created:
2017-08-17 15:49:38 UTC
Size:
963 bytes
patch
obsolete
>--- bareos-dir.orig 2017-08-16 16:07:37.049664000 -0500 >+++ bareos-dir 2017-08-17 09:44:56.801804000 -0500 >@@ -30,10 +30,28 @@ > command=/usr/local/sbin/bareos-dir > command_args="-c ${bareos_dir_config}" > pidfile="${bareos_dir_pidfile}" >+bconsole_command=/usr/local/bin/bconsole > start_precmd="bareos_start_precmd" >+restart_precmd="bareos_dir_configtest" >+reload_precmd="bareos_dir_configtest" >+reload_cmd="bareos_dir_reload" >+configtest_cmd="bareos_dir_configtest" > > bareos_start_precmd() { > [ -d "${pidfile%/*}" ] || install -d -o bareos -g bareos ${pidfile%/*} >+ bareos_dir_configtest > } > >+bareos_dir_configtest() { >+ echo "Performing sanity check on ${bareos_dir_config} configuration:" >+ eval ${command} -t >+} >+ >+bareos_dir_reload() { >+ echo "Performing a graceful reload" >+ # bconsole always exits with 0, so we can't check the return status for success. >+ echo "reload" | ${bconsole_command} >+} >+ >+extra_commands="reload configtest" > run_rc_command "$1"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 221593
: 185532