It seems something in your "command_service stop" has problems running
without a terminal - when a program invokes it rather than a human
from a working terminal, it's not a permissions problem

On 19/09/06, Diego <[EMAIL PROTECTED]> 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:
>
> - 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
>
>
>


-- 
R.I.Pienaar                             http://www.devco.net

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