hzeller / flaschen-taschen

Noisebridge Flaschen Taschen display
GNU General Public License v3.0
196 stars 48 forks source link

ft-server startup script for init.d #73

Closed mister-name closed 4 months ago

mister-name commented 4 months ago

Summary

On the discord f-t channel there was interest in making the rpi start ft-server on boot. This does that.

There will be a similar pull for Carl's ft-demos

Adds the following files-

Tests

Manually tested via cli and then rebooting, and it works on Noisebridge's f-t rpi.

Outstanding issues

There currently seems to be a flaw in that stopping the server isn't working. I haven't spent much time on that problem, seems to be a problem with how start-stop-daemon deals with $DAEMON. Like, maybe that should be a single filename, rather than a whole pathname. Will return to it in the coming weeks.

hzeller commented 4 months ago

Didn't we already have a script on that Pi, or did it get lost in the course of various moves over the time ? Or we started it in rc.local, I don't remember :)

Must be an old Pi that it still has a System-V init (good ol' days before systemd). Anyway, in general looks good. One script is better than no script :)

hzeller commented 4 months ago

Thanks, merging now, if there are refinements, there are always future PRs :)

mister-name commented 4 months ago

Didn't we already have a script on that Pi, or did it get lost in the course of various moves over the time ? Or we started it in rc.local, I don't remember :)

Must be an old Pi that it still has a System-V init (good ol' days before systemd). Anyway, in general looks good. One script is better than no script :)

I did not find anything, but will check again next time I'm in the space. I'll switch it to systemd if/when possible. init.d is an old-school habit of mine, I guess :/