From: "Benoît Thébaudeau" <benoit.thebaudeau.dev@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/rng-tools: systemd: support extra options
Date: Wed, 21 Oct 2015 00:43:28 +0200 [thread overview]
Message-ID: <1445381008-5165-1-git-send-email-benoit.thebaudeau.dev@gmail.com> (raw)
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>
---
package/rng-tools/rngd.service | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/rng-tools/rngd.service b/package/rng-tools/rngd.service
index 3bdc4c1..c0bcffe 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
--
2.1.4
next reply other threads:[~2015-10-20 22:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-20 22:43 Benoît Thébaudeau [this message]
2015-11-04 9:02 ` [Buildroot] [PATCH] package/rng-tools: systemd: support extra options Maxime Hadjinlian
2015-11-04 22:54 ` Benoît Thébaudeau
2015-11-04 20:50 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1445381008-5165-1-git-send-email-benoit.thebaudeau.dev@gmail.com \
--to=benoit.thebaudeau.dev@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox