Created
December 26, 2011 15:18
-
-
Save plamoni/1521378 to your computer and use it in GitHub Desktop.
SiriProxy Upstart Script
This file contains 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
Some things to note: | |
I'm running SiriProxy on port 2000 using a non-privileged user. I'm then redirecting internal network traffic | |
using iptables from port 443 to port 2000. This is more secure than running SiriProxy as root. I also have it | |
set up to respawn SiriProxy when it dies (which happens pretty regularly). Finally, I'm dumping all the output | |
to /tmp/siriproxy (in theory), but I don't seem to get output to that log. Which is unfortunate. Maybe someone | |
can explain what's wrong there. I'm really not an expert in Upstart either. :-) | |
As usual, simply copying/pasting this stuff anywhere will get you pretty much nowhere. You need to have some idea | |
what you're doing to make this work. Good luck! | |
-Pete |
This file contains 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
-A PREROUTING -s 192.168.2.0/24 -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 2000 | |
-A PREROUTING -s 192.168.2.0/24 -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 2000 |
This file contains 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
# SiriProxy - a Proxy for Siri | |
# | |
# SiriProxy is a fancy proxy that extends the functionality of Siri | |
description "SiriProxy server" | |
start on filesystem or runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
respawn limit 10 5 | |
exec su -c "/usr/share/ruby-rvm/gems/ruby-1.9.3-p0@SiriProxy/bin/siriproxy server -p 2000" - siriproxyuser >> /tmp/siriproxy2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like this is probably way out of date, but I had two comments.
Thanks so much for putting this together.