SiriProxy as background service #137
Comments
Or maybe there's a way to log the output to a file instead of console? Or just an error log? |
getting places... I found out that running the script through the web interface produces this error: command_line.rb:142:in I could manually change it and have it point directly to /root/ but I dont want to do that. Any ideas? |
Cool, got it to start running using the web interface by adding /opt/bin/sudo before the rest of the command |
Just a note. finally got it working as a background service on my Synology. AWESOME |
How did you get it to work, when I run your script from Terminal, siriproxy just starts logging to the console like usual. When I make a cron job to run it, I get this error: /root/siriproxy/bin/siriproxy:4:in `require': /root/siriproxy/bin/../lib/siriproxy/command_line.rb:74: syntax error, unexpected '>' (SyntaxError) |
Hmm, I'm running it as root using sudo. Also I haven't updated since 0.3 On Dec 31, 2011, at 11:23, Evan Colemanreply@reply.github.com wrote:
|
Yeah, that's probably it. Anyone know how to do this with the latest version? |
Anyone make any progress on this for current version? |
@dcinzona thx |
I just updated siriproxy and it no longer runs as a background service... need to look into it a bit more again. |
OK, I got it working again... I keep forgetting to > dev/null the new plugin gem spec files. |
actually my problem is to "rake install" ... the error msg: "You have to install development tools first." but i dont know how?! |
Google development tools synology install. On Feb 12, 2012, at 11:37, 3x3cut0rreply@reply.github.com wrote:
|
On Feb 12, 2012, at 11:37, 3x3cut0rreply@reply.github.com wrote:
|
do u mean "ipkg install optware-devel"? ... this alone are not fixing my problem |
Yeah you need the tool chain On Feb 13, 2012, at 5:02, 3x3cut0rreply@reply.github.com wrote:
|
i fixed it now ... Set up RVM and Ruby 1.9.3 (1.-3.) is working without errors and u have a solution? |
i have it! then i had to cp the bundle to the right bin folder: then very nice ... now i have to build a running startupscript ... how is the status of yours dcinzona? is it working? |
Yeah mine is working :) On Feb 14, 2012, at 15:56, 3x3cut0rreply@reply.github.com wrote:
|
i dont think that your script is working for me. |
I had to link siriproxy to opt bin. On Feb 14, 2012, at 17:00, 3x3cut0rreply@reply.github.com wrote:
|
Hey,
I'm trying to get SiriProxy to run as a background service on my Synology DiskStation.
I was able to get it all set up so that I can run it manually from SSH. I also have the script working in the startup and Synology packages section... the problem is, I can see the process start and then stop after a second.
I can confirm that I am running it as root and the script itself works (when I run the launch script manually, it works fine).
I'm starting to wonder if it has to do with Ruby and logging to the console (since it runs in the background, there's no console to log to I would imagine)
Either way, this is REALLY freaking cool and I'm so close! I dont want to have to keep an SSH session open every time I want siriproxy running (which is: eternally).
In case you want to know, this is the script that currently (and successfully when run from SSH manually) starts SiriProxy:
Also, just of note - i set the sudo option to NOPASSWD specifically for the script so it will run without prompting for password
!/bin/sh
PKGNAME="siriproxy"
PKGPATH="/var/packages/"${PKGNAME}
SPBIN=${PKGNAME}
SPSTART=sudo /opt/bin/ruby /opt/bin/siriproxy server
case $1 in
start)
echo "Starting SiriProxy ..."
${SPSTART}
exit 0
;;
stop)
echo "Stopping SiriProxy ..."
killall ${SPBIN}
exit 0
;;
status)
ps | grep -v grep | grep /opt/bin/siriproxy > /dev/null
if [ $? -ne 0 ]; then
echo "Status: SiriProxy is not running"
exit 1
fi
echo "Status: SiriProxy is running"
exit 0
;;
esac
The text was updated successfully, but these errors were encountered: