exe_bash_2017.2018/mysqlStop

9 lines
183 B
Plaintext
Raw Permalink Normal View History

2017-12-13 08:32:32 +01:00
#!/bin/bash
if (( $EUID != 0 )); then
echo "Il faut les droit root pour executer la tache"
exit
fi
SERVICEtoSTOP="mysql"
2017-12-15 14:33:29 +01:00
echo "Arret d'$SERVICEtoSTOP"
service "$SERVICEtoSTOP" stop