Reroganize repository
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
0a4424d25e
commit
cd781c174e
40 changed files with 113 additions and 22 deletions
16
system/bin/server.sh
Executable file
16
system/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 systemctl start httpd.service
|
||||
sudo systemctl start mariadb.service
|
||||
elif [ "$1" == "stop" ]; then
|
||||
sudo systemctl stop httpd.service
|
||||
sudo systemctl stop mariadb.service
|
||||
else
|
||||
echo "'$1' is an unknown option"
|
||||
exit 0
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue