rng-tools: add systemd service file
This commit is contained in:
parent
02ed48ccac
commit
caee309b2b
|
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Random number generator
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/sbin/rngd
|
||||
PIDFile=/var/run/rngd.pid
|
||||
KillSignal=SIGQUIT
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
inherit systemd
|
||||
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
SRC_URI_append = " file://rngd.service"
|
||||
|
||||
SYSTEMD_SERVICE_${PN} = "rngd.service"
|
||||
|
||||
do_install_append() {
|
||||
install -d ${D}/lib/systemd/system
|
||||
install -m 644 ${WORKDIR}/rngd.service ${D}/lib/systemd/system/
|
||||
}
|
||||
Loading…
Reference in New Issue