aboutsummaryrefslogtreecommitdiffstats
path: root/config/bacula-client
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
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')
-rw-r--r--config/bacula-client/bacula-client.inc9
-rw-r--r--config/bacula-client/bacula-client.xml4
2 files changed, 7 insertions, 6 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
diff --git a/config/bacula-client/bacula-client.xml b/config/bacula-client/bacula-client.xml
index 12eb48a2..018f47f9 100644
--- a/config/bacula-client/bacula-client.xml
+++ b/config/bacula-client/bacula-client.xml
@@ -71,12 +71,12 @@
<section>Services</section>
<configfile>bacula-client.xml</configfile>
</menu>
- <services>
+ <service>
<rcfile>bacula-fd.sh</rcfile>
<name>Bacula-client</name>
<executable>bacula-fd</executable>
<description>bacula backup client</description>
- </services>
+ </service>
<tabs>
<tab>
<text>Directors</text>