From: Benoît Thébaudeau Date: Tue, 20 Oct 2015 22:43:28 +0000 (+0200) Subject: package/rng-tools: systemd: support extra options X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=463d0b9d1b628283edb77defa507df3c9d0d2d76;p=buildroot.git 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 Reviewed-by: Maxime Hadjinlian Signed-off-by: Thomas Petazzoni --- diff --git a/package/rng-tools/rngd.service b/package/rng-tools/rngd.service index 3bdc4c11a7..c0bcffe59e 100644 --- a/package/rng-tools/rngd.service +++ b/package/rng-tools/rngd.service @@ -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