catalinii / minisatip

minisatip is an SATIP server for linux using local DVB-S2, DVB-C, DVB-T or ATSC cards
https://minisatip.org
328 stars 81 forks source link

Ship a decent systemd unit #938

Closed Jalle19 closed 2 years ago

Jalle19 commented 2 years ago

Everyone wants to run minisatip in the background, with automatic restarts and PID files and other bells and whistles. Currently everyone has to roll their own, leading to sub-par solutions (nohup scripts, /etc/rc.local etc.).

I suggest we ship a systemd unit and explain in the README how to use it. Custom platforms like axe or Enigma2 already have their own ways of starting minisatip, but generic PC users are currently left to figure it out for themselves.

bccrew commented 2 years ago

@Jalle19 I wrote a guide a while ago.. Feel free to enhance it ;)

https://github.com/catalinii/minisatip/blob/master/tools/autostart.readme

Jalle19 commented 2 years ago

Didn't know that, I'll use that as a base then!

Jalle19 commented 2 years ago

Will try running minisatip as an unprivileged user, using systemd's AmbientCapabilities. If it works I'll write up a PR.

Jalle19 commented 2 years ago

Closed by #986