exe_bash_2017.2018/mysqlStop

9 lines
183 B
Bash
Executable File

#!/bin/bash
if (( $EUID != 0 )); then
echo "Il faut les droit root pour executer la tache"
exit
fi
SERVICEtoSTOP="mysql"
echo "Arret d'$SERVICEtoSTOP"
service "$SERVICEtoSTOP" stop