cleanup init_scripts directory
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", SYMLINK+="infnoise"
|
SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", SYMLINK+="infnoise"
|
||||||
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015" ,TAG+="systemd", ENV{SYSTEMD_WANTS}="infnoise.service"
|
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015" ,TAG+="systemd", ENV{SYSTEMD_WANTS}="infnoise.service"
|
||||||
|
|||||||
@@ -8,5 +8,8 @@ Should someone create distribution packages for infnoise in future, hopefully th
|
|||||||
|
|
||||||
- `infnoise`: OpenRC, tested in Gentoo, untested in Alpine Linux, FreeBSD, TrueOS
|
- `infnoise`: OpenRC, tested in Gentoo, untested in Alpine Linux, FreeBSD, TrueOS
|
||||||
- `infnoise.conf`: Upstart, tested in Ubuntu 14.04, 16.04 (requires upstart install)
|
- `infnoise.conf`: Upstart, tested in Ubuntu 14.04, 16.04 (requires upstart install)
|
||||||
- `infnoise.service`: Systemd, untested in Redhat, Ubuntu etc
|
- `infnoise.service`: Systemd, works for CentOS, Ubuntu, Debian, ArchLinux
|
||||||
|
- `infnoise.service.bin`: Same as infnoise.service, binary path = /usr/bin/
|
||||||
|
- `infnoise.service.sbin`: Same as infnoise.service, binary path = /usr/sbin/
|
||||||
|
- `75-infnoise.rules`: udev rule to be used together with the systemd service
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Wayward Geek InfNoise TRNG driver
|
Description=Wayward Geek InfNoise TRNG driver
|
||||||
|
BindsTo=dev-infnoise.device
|
||||||
|
After=dev-infnoise.device
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
@@ -7,9 +9,7 @@ WorkingDirectory=/tmp
|
|||||||
ExecStart=/usr/local/sbin/infnoise --dev-random --daemon --pidfile /var/run/infnoise.pid
|
ExecStart=/usr/local/sbin/infnoise --dev-random --daemon --pidfile /var/run/infnoise.pid
|
||||||
User=root
|
User=root
|
||||||
Group=root
|
Group=root
|
||||||
Restart=no
|
Restart=always
|
||||||
BindsTo=dev-infnoise.device
|
|
||||||
After=dev-infnoise.device
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Wayward Geek InfNoise TRNG driver
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=forking
|
|
||||||
WorkingDirectory=/tmp
|
|
||||||
ExecStart=/usr/bin/infnoise --dev-random --daemon --pidfile /var/run/infnoise.pid
|
|
||||||
User=root
|
|
||||||
Group=root
|
|
||||||
Restart=no
|
|
||||||
BindsTo=dev-infnoise.device
|
|
||||||
After=dev-infnoise.device
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
@@ -6,7 +6,7 @@ After=dev-infnoise.device
|
|||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
WorkingDirectory=/tmp
|
WorkingDirectory=/tmp
|
||||||
ExecStart=/usr/local/sbin/infnoise --dev-random --daemon --pidfile /var/run/infnoise.pid
|
ExecStart=/usr/sbin/infnoise --dev-random --daemon --pidfile /var/run/infnoise.pid
|
||||||
User=root
|
User=root
|
||||||
Group=root
|
Group=root
|
||||||
Restart=always
|
Restart=always
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", SYMLINK+="infnoise"
|
|
||||||
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015" ,TAG+="systemd", ENV{SYSTEMD_WANTS}="infnoise.service"
|
|
||||||
Reference in New Issue
Block a user