[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 #!/bin/bash 2 3 ##### Stop ou reboot le serveur ##### 4 # 5 ## $Id: start_stop_serv.sh 7061 2012-04-02 09:22:45Z dbo $ ## 6 7 8 if [ "$1" == "--help" -o "$1" == "-h" ] 9 then 10 echo "Script d'arrêt ou de reboot du serveur" 11 echo "Pas d'option" 12 echo "--help cette aide" 13 14 exit 15 fi 16 17 if [ "$1" == "stop" ] 18 then 19 logger -t "Stop serveur" "Arrêt du serveur demandé" 20 /sbin/halt 21 fi 22 23 if [ "$1" == "restart" ] 24 then 25 26 logger -t "Restart serveur" "Reboot du serveur demandé" 27 /sbin/reboot 28 fi 29
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Mar 17 22:47:18 2015 | Cross-referenced by PHPXref 0.7.1 |