Add server.sh

Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
Severin Kaderli 2016-12-31 00:56:58 +01:00
parent e4ec5772a3
commit d50ad84683
3 changed files with 17 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
composer.phar composer.phar
.fonts/ .fonts/
bin/composer

Binary file not shown.

16
bin/server.sh Executable file
View file

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