Created
April 11, 2013 15:01
-
-
Save mmazer/5364095 to your computer and use it in GitHub Desktop.
MacOS X: Control racoon service
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 | |
case $1 in | |
'start') | |
sudo launchctl start com.apple.racoon | |
;; | |
'stop') | |
sudo launchctl stop com.apple.racoon | |
;; | |
'restart') | |
sudo launchctl stop com.apple.racoon | |
sudo launchctl start com.apple.racoon | |
;; | |
*) | |
echo "usage: racoonctl {start|stop|restart}" | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment