aboutsummaryrefslogtreecommitdiffstats
path: root/config/bacula-client/bacula-client.inc
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2012-07-02 10:28:18 -0300
committerMarcello Coutinho <marcellocoutinho@gmail.com>2012-07-02 10:28:18 -0300
commitb6a19e94b93047f9822d61aaf2d478c09aecbae3 (patch)
tree41c9cda38a5fc106e6207c5883197008b603ac73 /config/bacula-client/bacula-client.inc
parent8500dab01f26f87b8cf6d989527bd31dd0ffbf36 (diff)
downloadpfsense-packages-b6a19e94b93047f9822d61aaf2d478c09aecbae3.tar.gz
pfsense-packages-b6a19e94b93047f9822d61aaf2d478c09aecbae3.tar.bz2
pfsense-packages-b6a19e94b93047f9822d61aaf2d478c09aecbae3.zip
bacula-client - merge latest djgel fixes to bacula-client as his pull request could not be merged.
Diffstat (limited to 'config/bacula-client/bacula-client.inc')
-rw-r--r--config/bacula-client/bacula-client.inc5
1 files changed, 1 insertions, 4 deletions
diff --git a/config/bacula-client/bacula-client.inc b/config/bacula-client/bacula-client.inc
index a8a89250..6b54229c 100644
--- a/config/bacula-client/bacula-client.inc
+++ b/config/bacula-client/bacula-client.inc
@@ -96,15 +96,12 @@ function baculaclient_custom_php_write_config(){
if (is_array($config['installedpackages']['baculaclientfd']['config'])){
$port = $config['installedpackages']['baculaclientfd']['config'][0]['port'];
$jobs = $config['installedpackages']['baculaclientfd']['config'][0]['jobs'];
- $filedaemon = $config['installedpackages']['baculaclientfd']['config'][0]['name'];
}
else{
- $filedaemon="default";
$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}\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\tMaximum Concurrent Jobs = {$jobs}\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