Created
August 12, 2010 18:14
-
-
Save smathy/521395 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# MacPorts generated daemondo support script | |
# | |
# | |
# Init | |
# | |
prefix=/opt/local | |
# | |
# Start | |
# | |
Start() | |
{ | |
/opt/local/share/mysql5/mysql/mysql.server start | |
} | |
# | |
# Stop | |
# | |
Stop() | |
{ | |
/opt/local/share/mysql5/mysql/mysql.server stop | |
} | |
# | |
# Restart | |
# | |
Restart() | |
{ | |
Stop | |
Start | |
} | |
# | |
# Run | |
# | |
Run() | |
{ | |
case $1 in | |
start ) Start ;; | |
stop ) Stop ;; | |
restart) Restart ;; | |
* ) echo "$0: unknown argument: $1";; | |
esac | |
} | |
# | |
# Run a phase based on the selector | |
# | |
Run $1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment