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 [email protected] 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
