On Friday 12 June 2015 03.13:34 cocolocko wrote:
> hmm, CentOS 6 has sysV init. (CentOS 7 has SystemD)
> and no,/etc/init.d/bareos-dir does not have a dependency, or what did you 
> mean exactly? What personal copy do you mean? The copy of 
> /etc/init.d/bareos-dir?
> 
> Greetings
> 
A quick look at github sources reveal the following

in platform/suse we have the full deps clearly stated
in bareos-dir 

### BEGIN INIT INFO
# Provides:                      bareos-dir
# Required-Start:        $local_fs $remote_fs $network $time $syslog
# Should-Start:      postgresql mysql bareos-sd bareos-fd
# Required-Stop:         $local_fs $remote_fs $network
# Should-Stop:       postgresql mysql bareos-sd bareos-fd
# Default-Start:         3 5
# Default-Stop:          0 1 2 6
# Short-Description:    bareos director
# Description:                  Bareos network backup system director daemon
### END INIT INFO

Those header are missing in the redhat one.
Now I'm not an expert in redhat platform 


Compare 
https://github.com/bareos/bareos/blob/master/platforms/suse/bareos-dir.in
to 
https://github.com/bareos/bareos/blob/master/platforms/redhat/bareos-dir.in

If you successfully adapt the suse to redhat platforms I encourage you to open 
a bug report
and insert the line you've added to make the script working on Centos/Redhat 
sysV system.



> 
> Am Freitag, 12. Juni 2015 08:59:51 UTC+2 schrieb Bruno Friedmann:
> > On Thursday 11 June 2015 09.20:21 cocolocko wrote:
> > > hi @ all,
> > > 
> > > i am running CentOS v6.6 with Bareos 13.2.2.
> > > I have the problem that "bareos-dir" does not come up at system start. ( 
> > > only bareos-fd and bareos-sd processes are running!)
> > > But if i start it manually, it works! I can also connect to "bconsole" 
> > > and run jobs. /var/log/bareos/bareos.log  gave me this error:
> > > 
> > > 11-Jun 15:23 bareos-dir JobId 0: Fatal error: Could not open Catalog 
> > > "MyCatalog", database "bareos".
> > > 11-Jun 15:23 bareos-dir JobId 0: Fatal error: postgresql.c:238 Unable to 
> > > connect to PostgreSQL server. Database=bareos User=bareos
> > > Possible causes: SQL server not running; password incorrect; 
> > > max_connections exceeded.
> > > 11-Jun 15:23 bareos-dir ERROR TERMINATION
> > > Please correct configuration file: /etc/bareos/bareos-dir.conf
> > > 
> > > But i am wondering, i can manually connect to that database with "psql" 
> > > and also list tables.
> > > Some hints for me?
> > > Thanks a lot!
> > > 
> > > Greetings
> > > 
> > > 
> > > 
> > Have a check first of /usr/systemd/system/bareos-dir.service 
> > It ask systemd to start after postgresql service
> > After=nss-lookup.target network.target remote-fs.target time-sync.target 
> > postgresql.service mysql.service
> > 
> > Now as you perhaps still have the old sysV init you will have to check if 
> > the /etc/init.d/bareos-dir
> > has a dependency on after postgresql so it let a chance to the dir to find 
> > postgresql up and ready 
> > during boot sequence.
> > 
> > I'm surprise if the init script doesn't already contain it. Did you have a 
> > personal copy or something like that ?
> > 
> 
> 

-- 

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.

Reply via email to