Re: restarting services

Andreas Baetz <[email protected]> Mon, 26 May 2003 08:03:53 +0200
Newsgroups gmane.network.netsaint.user
Message-ID <[email protected]>
On Friday 23 May 2003 19:21, Andrea wrote:
> I'm trying to let netsaint restart services in case of problems.
> I put netsaint in the sudoers file for the restart program,
> but when the event handler executes nothing happens
> (even if the auth log registers the sudo call correctly).
>
> Do you have any clue ?
> thanks
>
> some configuration details:
>
> /etc/sudoers
> netsaint ALL=NOPASSWD:/usr/lib/netsaint/plugins/restart_service
>
> ls -l /usr/bin/sudo
> -rwsr-xr-x    1 root     root        80584 Apr 27  2002 /usr/bin/sudo
>
> /etc/netsaint/command.cfg
> command[restart-http]=sudo /usr/lib/netsaint/plugins/restart_service
> $SERVICESTATE$ $STATETYPE$ $SERVICEATTEMPT$ apache
what happens if you do
command[restart-http]=/usr/bin/sudo /usr/lib/netsaint/plugins/restart_service
$SERVICESTATE$ $STATETYPE$ $SERVICEATTEMPT$ apache
instead ?

Andreas Baetz


-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge