Bug 221593

Summary: sysutils/bareos-server [patch] provide graceful reload capability
Product: Ports & Packages Reporter: Douglas K. Rand <doug.rand>
Component: Individual Port(s)Assignee: Jose Alonso Cardenas Marquez <acm>
Status: Closed FIXED    
Severity: Affects Some People Keywords: patch
Priority: --- Flags: bugzilla: maintainer-feedback? (acm)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch to bareos-dir RC script to implement a graceful reload none

Description Douglas K. 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 Douglas K. Rand 2018-06-11 20:13:54 UTC
Any chance of getting some traction on this?
Comment 2 commit-hook freebsd_committer freebsd_triage 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