diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/haveged/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/haveged/files')
-rw-r--r-- | sys-apps/haveged/files/haveged-conf.d | 9 | ||||
-rw-r--r-- | sys-apps/haveged/files/haveged-init.d.3 | 16 | ||||
-rw-r--r-- | sys-apps/haveged/files/haveged.conf | 6 | ||||
-rw-r--r-- | sys-apps/haveged/files/service.gentoo | 12 |
4 files changed, 43 insertions, 0 deletions
diff --git a/sys-apps/haveged/files/haveged-conf.d b/sys-apps/haveged/files/haveged-conf.d new file mode 100644 index 000000000000..a8520a3771e1 --- /dev/null +++ b/sys-apps/haveged/files/haveged-conf.d @@ -0,0 +1,9 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +WATERMARK=1024 + +# -r0 is added always +HAVEGED_OPTS="-w ${WATERMARK} -v 1" + +# vim:ft=gentoo-conf-d: diff --git a/sys-apps/haveged/files/haveged-init.d.3 b/sys-apps/haveged/files/haveged-init.d.3 new file mode 100644 index 000000000000..2fbf27c27cd2 --- /dev/null +++ b/sys-apps/haveged/files/haveged-init.d.3 @@ -0,0 +1,16 @@ +#!/sbin/openrc-run +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +pidfile=/run/${SVCNAME}.pid + +command="/usr/sbin/${SVCNAME}" +command_args="-r 0 ${HAVEGED_OPTS} -p ${pidfile}" + +depend() { + need localmount + use logger + provide entropy +} + +# vim:ft=gentoo-init-d: diff --git a/sys-apps/haveged/files/haveged.conf b/sys-apps/haveged/files/haveged.conf new file mode 100644 index 000000000000..20c09ea66a47 --- /dev/null +++ b/sys-apps/haveged/files/haveged.conf @@ -0,0 +1,6 @@ +# Copyright 2013-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +WATERMARK=1024 + +# vim:ft=haveged.conf: diff --git a/sys-apps/haveged/files/service.gentoo b/sys-apps/haveged/files/service.gentoo new file mode 100644 index 000000000000..f896ed2a9b7a --- /dev/null +++ b/sys-apps/haveged/files/service.gentoo @@ -0,0 +1,12 @@ +[Unit] +Description=Entropy Daemon based on the HAVEGE algorithm +Documentation=man:haveged(8) http://www.issihosts.com/haveged/ + +[Service] +Type=forking +PIDFile=/run/haveged.pid +EnvironmentFile=/etc/haveged.conf +ExecStart=/usr/sbin/haveged -w ${WATERMARK} -v 1 -p /run/haveged.pid -r 0 + +[Install] +WantedBy=multi-user.target |