rng-tools: add systemd service file

This commit is contained in:
Stefan Eichenberger 2016-10-17 15:15:25 +02:00
parent 02ed48ccac
commit caee309b2b
2 changed files with 23 additions and 0 deletions

View File

@ -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

View File

@ -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/
}