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
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
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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


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

Reply via email to