Commit 463d0b9d authored by Benoît Thébaudeau's avatar Benoît Thébaudeau Committed by Thomas Petazzoni
Browse files

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: default avatarBenoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
Reviewed-by: default avatarMaxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent db89b0b9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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