Add server.sh
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
e4ec5772a3
commit
d50ad84683
3 changed files with 17 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
composer.phar
|
||||
.fonts/
|
||||
bin/composer
|
||||
|
|
BIN
bin/composer
BIN
bin/composer
Binary file not shown.
16
bin/server.sh
Executable file
16
bin/server.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue