dotfiles/system/bin/server.sh
Severin Kaderli e405bbcd89 Comment the scripts in system/bin
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
2018-12-13 21:54:40 +01:00

23 lines
473 B
Bash
Executable file

#!/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