Bacula-users

[Bacula-users] mysql query in Run After Job

2010-09-10 01:11:19
Subject: [Bacula-users] mysql query in Run After Job
From: "James Harper" <james.harper AT bendigoit.com DOT au>
To: <bacula-users AT lists.sourceforge DOT net>
Date: Fri, 10 Sep 2010 15:08:03 +1000
I am trying to run a mysql query in Run After Job to update a catalogue
record, and it's failing to log in. I suspect that it's because
bacula-dir is running as bacula but mysql is looking in /root for the
.my.cnf file that contains the password instead of in /var/lib/bacula
(~bacula) due to bacula-dir not picking up the full environment of the
bacula user.

Bacula starts as "/usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u
bacula -g bacula"

Any suggestions? I'd prefer not to put the password on the command line
even though this isn't a server that having the password visible via
'ps' is going to be an issue (it only runs bacula and nobody logs into
it).

Thanks

James


------------------------------------------------------------------------------
Automate Storage Tiering Simply
Optimize IT performance and efficiency through flexible, powerful, 
automated storage tiering capabilities. View this brief to learn how
you can reduce costs and improve performance. 
http://p.sf.net/sfu/dell-sfdev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>