spotify-connect-web icon indicating copy to clipboard operation
spotify-connect-web copied to clipboard

Monitor status

Open arjen8 opened this issue 9 years ago • 5 comments

Is it possible to monitor the status of Spotify connect, by using for example Monit? And if the service is down, restart the service.

arjen8 avatar Jan 18 '16 18:01 arjen8

you can use daemontools for restart. you can also log with it. https://cr.yp.to/daemontools.html

maumi avatar Jan 18 '16 21:01 maumi

Could you help me with the right command to check the status and restart the service if necessary? Tnx!

arjen8 avatar Jan 19 '16 07:01 arjen8

Or if your system uses systemd, just write a small unit file, systemd will restart a service automatically if it fails.

herrernst avatar Jan 19 '16 10:01 herrernst

with daemontools, you simply need to install it. http://blog.rtwilson.com/how-to-set-up-a-simple-service-to-run-in-the-background-on-a-linux-machine-using-daemontools/ in run file you need a starting script for spotify. If it fails, it will restart also automatically. If it fails on start, it surely won't help. If you want logging, you can google for that.

maumi avatar Jan 22 '16 10:01 maumi

I used supervisord.org to keep this running.

cadavre avatar May 25 '16 09:05 cadavre