Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service stopping when closing terminal #196

Closed
nisak80 opened this issue Apr 29, 2016 · 2 comments
Closed

Service stopping when closing terminal #196

nisak80 opened this issue Apr 29, 2016 · 2 comments

Comments

@nisak80
Copy link

nisak80 commented Apr 29, 2016

First let me state that I am a beginner on raspberry so might be something obvious (for you guys) that I have not done.
Installed sonos-http-api on raspberry-pi mod B and got all up and running and working controlling my Play:1 by html commands.
But as soon as I close terminal (putty) the service seems to stop.
Connecting to raspberry by putty and starting service will fix problem as long as terminal window is open.

Anyone?

@jishi
Copy link
Owner

jishi commented Apr 29, 2016

Hi, yes that is how the terminal works in Linux. You can either run it using "screen" or "tmux" which keeps a terminal alive even when you disconnect, or use a process handler for node.js (I recommend this approach). Personally I prefer pm2, see this issue for instructions:

#20

@jishi jishi closed this as completed Apr 29, 2016
@nisak80
Copy link
Author

nisak80 commented Apr 29, 2016

Excelent, thank you very much for help.
Implemented and working like a charm. Thanks for great efford making this code. Keep up the good work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants