package/haveged: add systemd units
Signed-off-by: Steven Noonan <steven@uplinklabs.net> Reviewed-by: Mike Williams <mike@mikebwilliams.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
7d2738289d
commit
99d30f1faf
@ -14,4 +14,12 @@ define HAVEGED_INSTALL_INIT_SYSV
|
|||||||
$(TARGET_DIR)/etc/init.d/S21haveged
|
$(TARGET_DIR)/etc/init.d/S21haveged
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define HAVEGED_INSTALL_INIT_SYSTEMD
|
||||||
|
$(INSTALL) -D -m 644 package/haveged/haveged.service \
|
||||||
|
$(TARGET_DIR)/usr/lib/systemd/system/haveged.service
|
||||||
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
||||||
|
ln -fs /usr/lib/systemd/system/haveged.service \
|
||||||
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/haveged.service
|
||||||
|
endef
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
10
package/haveged/haveged.service
Normal file
10
package/haveged/haveged.service
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Entropy Harvesting Daemon
|
||||||
|
Documentation=man:haveged(8)
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/haveged -F -w 1024 -v 1
|
||||||
|
SuccessExitStatus=143
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user