leetronics / infnoise

The world's easiest TRNG to get right
Creative Commons Zero v1.0 Universal
122 stars 25 forks source link

Is sytemd needed? #21

Closed artemislena closed 4 years ago

artemislena commented 4 years ago

If there were a forum/IRC or anything, I'd ask there, but afaict there is none. The packages automatically generate a systemd service. So it won't be compatible with other init systems like OpenRC or runit? Or am I misunderstanding anything about init daemon services or the infnoise driver? Will this differ when compiling from source (because e.g. Gentoo and Void don't have suitable packages anyway)?

manuel-domke commented 4 years ago

Hi, the systemd service is not required at all. It's just for convenience: to start the driver when the device is plugged in.

There's also an openrc config in the repo: https://github.com/13-37-org/infnoise/blob/master/software/init_scripts/infnoise.gentoo.openrc, but I don't think it's used in any build steps so far. The install target however installs the systemd files and while I guess this doesn't cause any issues on systems with openrc, it should probably be changed.