Manage Apache server and database from one script
This is very simple script. You should supply operation that you want to execute
#!/bin/bash
if [ ! -n "$1" ]
then
echo "Usage: `basename $0` argument1 (start|stop|restart)"
exit $E_BADARGS
fi
sudo /Library/StartupItems/MySQLCOM/MySQLCOM $1
sudo apachectl $1
Written by Nikolay Yanev
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#