Hi, On 9/19/2006 12:05 PM, Diego wrote: > > Hello, > > On 9/19/2006 9:54 AM, Diego wrote: > > Hi, I need to run a script to stop a service before do the > backup. Only > > one user can stop this service, this user not need password for > run the > > stop command. > > In my bacula-dir.config I have: > > > > run before job = "/opt/bacula/script_stop_service" > > > > In the script_stop_service I have: > > > > su - service_user -c "command_service stop" > > > > And the error is "RunBefore: standard in must be a tty" > > The script_stop_service permissions are: > > This doesn't look like a permissions problem. The message seems to be > quite clear, and perhaps using sudo instead of su helps. > > > Now using sudo: > > sudo -u zimbra -p '(withoutpassword)' '/opt/zimbra/bin/zmcontrol' stop; > > 19-sep 11:49 ZimbraBK-dir: RunBefore: > 19-sep 11:49 ZimbraBK-dir: CopiaPrueba.2006-09-19_11.49.13 Fatal error: > RunBeforeJob error: ERR=Child exited with code 1
What happens when you use the command from the shell? According to my local sudo man page, a return code of 1 might indicate a configuration error for sudo or a permissions problem. It could, obviously, also happen that your '... stop' command retuns wit a code of 1. Trying this from the shell, you should see all the messages. To see more of the output Bacula receives, you might consider running the FD and the DIR with debug output enabled. Hope this helps, Arno > Where can I see a log of the failure? It's a fedora installation. > > Arno > > > > > - rwx r-x r-- 1 root bacula script_stop_service > > > > Any suggestion? > > > > -- > > By Diego... >8-P > > > > > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------- > > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > > opinions on IT & business topics through brief surveys -- and > earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> > > > > > > > ------------------------------------------------------------------------ > > > > > _______________________________________________ > > Bacula-users mailing list > > Bacula-users@lists.sourceforge.net > <mailto:Bacula-users@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/bacula-users > > -- > IT-Service Lehmann [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > Arno Lehmann http://www.its-lehmann.de > > > > ------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net 's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> > > ------------------------------ > > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > <mailto:Bacula-users@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/bacula-users > > > End of Bacula-users Digest, Vol 5, Issue 99 > ******************************************* > > > > > -- > By Diego... >8-P > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users -- IT-Service Lehmann [EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users