On Monday 13 July 2015 13.57:27 Jörg Steffens wrote: > 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 > Also just copy /usr/lib/ to /etc/ and uncomment the already existing line :-) #ExecReload=/sbin/killproc -p /var/lib/bareos/bareos-dir.pid -HUP /usr/sbin/bareos-dir
-- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch openSUSE Member & Board, fsfe fellowship GPG KEY : D5C9B751C4653227 irc: tigerfoot -- 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.
