Restart service problem with sudo [Solved]
Sil <Spam>
smog1 at free.fr
Wed Mar 28 11:45:44 CEST 2007
With the log test the problem has solved himself :
I've try my script with this command line
/usr/bin/sudo /etc/init.d/mysql restart > /tmp/debug.log 2>&1
And the service has start !!!
The log was :
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld.
Checking for crashed MySQL tables in the background.
(A normal restart)
So I try this command without log file
/usr/bin/sudo /etc/init.d/mysql restart > /dev/null 2>&1
And it's works !
I don't know why but it's perfect !
Thanks to all for your help
Sil
-------------------------------------------------------------------------
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
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list