Created
February 8, 2013 14:19
-
-
Save ymt2/4739285 to your computer and use it in GitHub Desktop.
Revisions
-
ymt2 created this gist
Feb 8, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,52 @@ #!/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