aboutsummaryrefslogtreecommitdiffstats
path: root/config/bacula-client/bacula-client.inc
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2012-06-29 17:04:09 -0300
committermarcelloc <marcellocoutinho@gmail.com>2012-06-29 17:04:09 -0300
commit60436f9c10975cf18fb7303bdceb254f314a3e17 (patch)
treed46dc81bda56a26e197d7d571c811ddfc3f83cad /config/bacula-client/bacula-client.inc
parent3c29c5cfe7a8844bb7bea25fe00663208e6cbe2e (diff)
downloadpfsense-packages-60436f9c10975cf18fb7303bdceb254f314a3e17.tar.gz
pfsense-packages-60436f9c10975cf18fb7303bdceb254f314a3e17.tar.bz2
pfsense-packages-60436f9c10975cf18fb7303bdceb254f314a3e17.zip
bacula-client - after testing, change binaries to 8-stable and applied final fixes to gui option. Now daemon starts
Diffstat (limited to 'config/bacula-client/bacula-client.inc')
-rw-r--r--config/bacula-client/bacula-client.inc9
1 files changed, 5 insertions, 4 deletions
diff --git a/config/bacula-client/bacula-client.inc b/config/bacula-client/bacula-client.inc
index d64dd06b..a8a89250 100644
--- a/config/bacula-client/bacula-client.inc
+++ b/config/bacula-client/bacula-client.inc
@@ -83,14 +83,14 @@ function baculaclient_custom_php_write_config(){
$baculaclient_conf .= "Director { \n\t Name = {$bc['director']}-mon #{$bc['description']}\n\t Password = \"{$bc['password']}\"\n\t Monitor = yes\n\t}\n";
break;
case "Monitor":
- $baculaclient_conf .= "Director { \n\t Name = {$bc['director']}-dir #{$bc['description']}\n\t Password = \"{$bc['password']}\"\n\t}\n";
- $baculaclient_conf .= "Director { \n\t Name = {$bc['director']}-mon #{$bc['description']}\n\t Password = \"{$bc['password']}\"\n\t Monitor = yes\n\t}\n";
+ $baculaclient_conf .= "Director { \n\t Name = {$bc['director']}-dir #{$bc['description']}\n\t Password = \"{$bc['password']}\"\n\t}\n";
+ $baculaclient_conf .= "Director { \n\t Name = {$bc['director']}-mon #{$bc['description']}\n\t Password = \"{$bc['password']}\"\n\t Monitor = yes\n\t}\n";
}
$LocalDirector = $bc['director'];
}
// create Messages
- $baculaclient_conf .= "Messages { \n\t Name = Standard \n\t director = {$LocalDirector}-dir = all, !skipped, !restored\n\t \n}\n";
+ $baculaclient_conf .= "Messages { \n\t Name = Standard \n\t director = {$LocalDirector}-dir = all, !skipped, !restored\n\t}\n";
// create FielDaemon
if (is_array($config['installedpackages']['baculaclientfd']['config'])){
@@ -103,7 +103,8 @@ function baculaclient_custom_php_write_config(){
$port="9102";
$jobs="20";
}
- $baculaclient_conf .= "FileDaemon { \n\t Name = {$filedaemon}-fd #\n\t FDport = {$port}\n\t WorkingDirectory = /var/db/bacula\n\t Pid Directory = /var/run\n\t Maximun Concurrent Jobs = {$jobs}\n \n}\n";
+ //$baculaclient_conf .= "FileDaemon { \n\t Name = {$filedaemon}-fd #\n\t FDport = {$port}\n\t WorkingDirectory = /var/db/bacula\n\t Pid Directory = /var/run\n\t Maximun Concurrent Jobs = {$jobs}\n \n}\n";
+ $baculaclient_conf .= "FileDaemon { \n\t Name = {$filedaemon}-fd #\n\t FDport = {$port}\n\t WorkingDirectory = /var/db/bacula\n\t Pid Directory = /var/run\n\t}\n";
file_put_contents("/usr/local/etc/bacula-fd.conf",$baculaclient_conf,LOCK_EX);
exec("/usr/local/etc/rc.d/bacula-fd.sh restart");
// Mount Read-only