For example, starting the director like this:
# bacula-dir -c '|/usr/local/sbin/generate-dir-config'
Maybe I am missing some important point, but by now I can't see any mayor
benefits of your solution compared with:
# /usr/local/sbin/generate-dir-config
What: The ability to read a configuration file as stdout from an executable
Why: The configuration files (particularly for the Director) are very
complex. In my case I find it easier to have a program generate them
from meta-information about the clients.
Notes:
The attached
On Mar 19, 2007, at 6:59 AM, Jorj Bauer wrote:
What: The ability to read a configuration file as stdout from an
executable
Why: The configuration files (particularly for the Director) are very
complex. In my case I find it easier to have a program generate them
from
# bacula-dir -c '|/usr/local/sbin/generate-dir-config'
... would cause it to run /usr/local/sbin/generate-dir-config to
generate a new configuration file.
Hey, that sounds pretty useful. When you say globally, I assume you
mean that I can just toss a similar line into
On Mar 19, 2007, at 10:38 AM, Jorj Bauer wrote:
# bacula-dir -c '|/usr/local/sbin/generate-dir-config'
... would cause it to run /usr/local/sbin/generate-dir-config to
generate a new configuration file.
Hey, that sounds pretty useful. When you say globally, I assume you
mean that I
Jorj Bauer wrote:
What: The ability to read a configuration file as stdout from an executable
Why: The configuration files (particularly for the Director) are very
complex. In my case I find it easier to have a program generate them
from meta-information about the clients.
Maybe I am missing some important point, but by now I can't see any mayor
benefits of your solution compared with:
# /usr/local/sbin/generate-dir-config /etc/bacula/bacula-dir.conf
bacula-dir -c /etc/bacula/bacula-dir.conf
It's subtle. You're missing the 'reload' command.
-- Jorj
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andreas Helmcke wrote:
Jorj Bauer wrote:
What: The ability to read a configuration file as stdout from an executable
Why: The configuration files (particularly for the Director) are very
complex. In my case I find it easier to have a program