waywardgeek / infnoise

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

Add a .service file for use with systemd #13

Closed JasperWallace closed 8 years ago

jduprat commented 8 years ago

My version of this file also contains the line: BindsTo=dev-%i.device

From man systemd.unit:

BindsTo= Configures requirement dependencies, very similar in style to Requires=, however in addition to this behavior, it also declares that this unit is stopped when any of the units listed suddenly disappears. Units can suddenly, unexpectedly disappear if a service terminates on its own choice, a device is unplugged or a mount point unmounted without involvement of systemd.