dotfiles/bin/server.sh
Severin Kaderli 3e624f1048 Update server.sh and add hyper-statusline to .hyper.js
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
2017-01-14 21:34:54 +01:00

18 lines
455 B
Bash
Executable file

#!/bin/bash
#
# This script allows me to quickly start or stop apache2 and mysql.
#
# Usage: ./server.sh [start|stop]
if [ "$1" == "start" ]; then
sudo systemctl start apache2.service
sudo systemctl start mysql.service
sudo systemctl start php7.0-fpm.service
elif [ "$1" == "stop" ]; then
sudo systemctl stop apache2.service
sudo systemctl stop mysql.service
sudo systemctl stop php7.0-fpm.service
else
echo "'$1' is an unknown option"
exit 0
fi