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

No /etc/ folder in python-flaschen-taschen git repository #51

Open
anikation opened this issue Apr 18, 2024 · 3 comments
Open

No /etc/ folder in python-flaschen-taschen git repository #51

anikation opened this issue Apr 18, 2024 · 3 comments

Comments

@anikation
Copy link

In the readme for setting up python-flaschen-taschen, it references the following instructions below but there is no service file. I think I managed to get everything installed but every now and then it crashes and it would be nice to have it boot on startup and also restart if it fails. I'm not that experienced with writing the code for this on my own, so any help would be greatly appreciated, otherwise this is an amazing project, I absolutely love it!

Automatically launch on boot
FIXME:

There's a systemd service file at /etc/shairport-sync_rgb-matrix-server.service in this git repository.

There's a systemd service file at /etc/shairport-sync_rgb-matrix-client.service in this git repository.

@idcrook
Copy link
Owner

idcrook commented Apr 26, 2024

I am not sure whether it was ever added here. Perhaps you could adapted the system service file from shairport-sync_web.service: https://github.com/idcrook/shairport-sync-mqtt-display/blob/fb28e34ef5e7769d553bef34b48abadcb5f0a72c/python-flask-socketio-server/etc/shairport-sync_web.service

@idcrook
Copy link
Owner

idcrook commented Apr 26, 2024

the systemd services are very sophisticated and definitely can be configured to restart on crash. Google search and experimentation are your friends here, as I am not an expert on systemd.

Also, the output from a crash should show up in the systemd logging (journalctl), so that will be another benefit if you install it as a systemd service. Having the output could be useful to figure out causes of a crash.

@anikation
Copy link
Author

anikation commented Apr 26, 2024 via email

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