Update server.sh

Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
Severin Kaderli 2017-01-30 21:00:08 +01:00
parent a38daaa32c
commit c1edaffcbf

View file

@ -5,12 +5,12 @@
# Usage: ./server.sh [start|stop] # Usage: ./server.sh [start|stop]
if [ "$1" == "start" ]; then if [ "$1" == "start" ]; then
sudo systemctl start apache2.service sudo systemctl start httpd.service
sudo systemctl start mysql.service sudo systemctl start mariadb.service
sudo systemctl start php7.0-fpm.service sudo systemctl start php7.0-fpm.service
elif [ "$1" == "stop" ]; then elif [ "$1" == "stop" ]; then
sudo systemctl stop apache2.service sudo systemctl stop httpd.service
sudo systemctl stop mysql.service sudo systemctl stop mariadb.service
sudo systemctl stop php7.0-fpm.service sudo systemctl stop php7.0-fpm.service
else else
echo "'$1' is an unknown option" echo "'$1' is an unknown option"