8 lines
186 B
Bash
Executable File
8 lines
186 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 "Démarage d'$SERVICEtoSTOP"
|
|
service "$SERVICEtoSTOP" stop |