Am 10.07.2015 um 13:52 schrieb Gerhard Sulzberger:
> Today I played around with Chef Automation and Bareos, I recognized
> that on some Distributions reload option is possible (Ubuntu,
> Debian). But with CentOS 7.0 I have the problem there is no reload
> option for systemd.
> 
> /bin/systemctl reload bareos-dir Job type reload is not applicable
> for unit bareos-dir.service
> 
> So what should I do? just using restart, but what happens if the
> directory, storage or file-daemon is restarting when a job is
> running?

well, restarting the director while jobs are scheduled, aborts/cancels
these jobs.
However, also doing a director reload is not always safe, as when
certain things change (e.g. jobs removed from the configuration) the
director might crash.

As a quick workaround to enable reloads on systemd machines is to create
a file

/etc/systemd/system/bareos-dir.service.d/reload.conf

with the content:

[Service]
ExecReload=/bin/kill -HUP $MAINPID

and then do the reloads.

regards,
Jörg
-- 
 Jörg Steffens                   [email protected]
 Bareos GmbH & Co. KG            http://www.bareos.com

 Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
 Komplementär: Bareos Verwaltungs-GmbH
 Geschäftsführer:
 S. Dühr, M. Außendorf, Jörg Steffens, P. Storz, M. v. Wieringen

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to