restarting services

Andrea <[email protected]> Fri, 23 May 2003 19:21:36 +0200
Newsgroups gmane.network.netsaint.user
Message-ID <[email protected]>
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

ls -l /usr/lib/netsaint/plugins/restart_service
-rwxr-xr-x    1 root     root        31829 Apr  7 18:20
/usr/lib/netsaint/plugins/restart_service

less /etc/passwd | grep netsaint
netsaint:x:103:103::/var/log/netsaint:/bin/sh


-- 
Andrea Passerini


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