More config cleanup
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
005c4f29b6
commit
8d3f9c8a1d
22 changed files with 44 additions and 27 deletions
23
system/.local/bin/server.sh
Executable file
23
system/.local/bin/server.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# SCRIPT NAME:
|
||||
# server.sh
|
||||
#
|
||||
# AUTHOR:
|
||||
# Severin Kaderli <severin.kaderli@gmail.com>
|
||||
#
|
||||
# DESCRIPTION:
|
||||
# This script starts / stops the Apache and MariaDB servers.
|
||||
#
|
||||
# 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