Bug 221593 - sysutils/bareos-server [patch] provide graceful reload capability
Summary: sysutils/bareos-server [patch] provide graceful reload capability
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Jose Alonso Cardenas Marquez
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2017-08-17 15:49 UTC by rand
Modified: 2018-11-20 21:50 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (acm)


Attachments
Patch to bareos-dir RC script to implement a graceful reload (963 bytes, patch)
2017-08-17 15:49 UTC, rand
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rand 2017-08-17 15:49:38 UTC
Created attachment 185532 [details]
Patch to bareos-dir RC script to implement a graceful reload

Using the stop/start cycle to deploy a new Bareos configuration (for us it is via Puppet) is quite intrusive in that all currently running jobs are tossed on the floor when you restart bareos-dir. (That includes jobs that are past their scheduled start time but haven't yet started executing.)

Through bconsole you can do a 'reload' which is exactly what we need, a graceful loading of a new configuration.  Following the pattern from the apache24 RC script I did a configtest target along with the reload target.

Attached is the patch to the RC script for bareos-dir.
Comment 1 rand 2018-06-11 20:13:54 UTC
Any chance of getting some traction on this?
Comment 2 commit-hook freebsd_committer 2018-11-20 21:50:17 UTC
A commit references this bug:

Author: acm
Date: Tue Nov 20 21:49:19 UTC 2018
New revision: 485488
URL: https://svnweb.freebsd.org/changeset/ports/485488

Log:
  - Update to 17.2.7
  - Add bareos-dir reload into rc script
  - Fix default configuration path
  - Some another modifications

  PR:		231551 221593 230123
  Submitted by:	rand __at__ iteris.com, hsn __at__ sendmail.cz

Changes:
  head/sysutils/bareos-client/Makefile
  head/sysutils/bareos-client-static/Makefile
  head/sysutils/bareos-docs/distinfo
  head/sysutils/bareos-server/Makefile
  head/sysutils/bareos-server/distinfo
  head/sysutils/bareos-server/files/bareos-dir.in
  head/sysutils/bareos-server/files/bareos-fd.in
  head/sysutils/bareos-server/files/bareos-sd.in
  head/sysutils/bareos-traymonitor/Makefile