[pkg-bacula-devel] Bug#605449: Set up for bacula-director-pgsql runs before that of postgresql-8.4.
Teodor MICU
mteodor at gmail.com
Fri Nov 23 10:02:10 UTC 2012
Package: bacula-director-common
Version: 5.2.6+dfsg-6
Hi,
Indeed, any SQL backend (postgresql, mysql ..) does not have to be
local. But in case it is local (as I and many probably have) this
needs to be declared correctly in the init script:
#! /bin/sh
### BEGIN INIT INFO
# Provides: bacula-director
# Required-Start: $remote_fs $syslog
# Should-Start: bacula-fd postgresql
# Required-Stop: $remote_fs $syslog
# Should-Stop: bacula-fd postgresql
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO
Because the declaration is on "Should-*" it doesn't affect those who
don't have the SQL service on the local system. Its the same mechanism
used for 'bacula-fd' (which I don't have it installed on the Bacula
server).
I'm currently settings this in /etc/insserv/overrides/bacula-director.
You might want to add what others provide in their init script too
(i.e. mysql).
Cheers
More information about the pkg-bacula-devel
mailing list