package/rng-tools: systemd: support extra options

Add a DAEMON_ARGS configuration variable in order to make it possible to
pass custom extra options to rngd. This environment variable must
defined in /etc/default/rngd if needed, like with the SysV init script.
This file does not have to be present if not needed.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
Reviewed-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Benoît Thébaudeau 2015-10-21 00:43:28 +02:00 committed by Thomas Petazzoni
parent db89b0b983
commit 463d0b9d1b

View File

@ -2,8 +2,9 @@
Description=Hardware RNG Entropy Gatherer Daemon
[Service]
ExecStart=/usr/sbin/rngd -f
ExecStart=/usr/sbin/rngd -f $DAEMON_ARGS
SuccessExitStatus=66
EnvironmentFile=-/etc/default/rngd
[Install]
WantedBy=multi-user.target