From d8f6d1b7e11013b03b91d0fd92cbca4f99c6ea9f Mon Sep 17 00:00:00 2001 From: Mario Uher Date: Wed, 6 Aug 2014 15:24:28 +0200 Subject: [PATCH] Adds a launchd Property List File. Allows tunnels to start with OS X and keep it running in background without having to start it manually. --- README.md | 6 ++++++ jugyo.tunnels.plist | 27 +++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 jugyo.tunnels.plist diff --git a/README.md b/README.md index db9de2c..a947516 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,12 @@ Run --- $ sudo tunnels + +If you're on a Mac and wanna have tunnels run all the time, load it via launchctl from `/Library/LaunchAgents`: + + $ launchctl load jugyo.tunnels.plist + +or use [LaunchRocket](https://github.com/jimbojsb/launchrocket), but don't forget to check the "As Root" option. If you are using rvm: diff --git a/jugyo.tunnels.plist b/jugyo.tunnels.plist new file mode 100644 index 0000000..21d7623 --- /dev/null +++ b/jugyo.tunnels.plist @@ -0,0 +1,27 @@ + + + + + Label + jugyo.tunnels + ProgramArguments + + /usr/bin/env + ruby + -rtunnels + -eTunnels.run! + + KeepAlive + + RunAtLoad + + + +