summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2018-11-15 14:50:32 -0800
committerPatrick McLean <chutzpah@gentoo.org>2018-11-15 14:52:08 -0800
commite89960b35cf778df12786199f79b7634746de3ec (patch)
tree1a301e7c499e93aa5000ee95b5af97c072d5f772 /app-admin/metalog/files
parentnet-vpn/wireguard: version bump (diff)
downloadgentoo-e89960b35cf778df12786199f79b7634746de3ec.tar.gz
gentoo-e89960b35cf778df12786199f79b7634746de3ec.tar.bz2
gentoo-e89960b35cf778df12786199f79b7634746de3ec.zip
app-admin/metalog: Version bump to 20181125 (bug #664344)
Update HOMEPAGE to GitHub site Closes: https://bugs.gentoo.org/664344 Closes: https://bugs.gentoo.org/669694 Bug: https://bugs.gentoo.org/210711 Bug: https://bugs.gentoo.org/670757 Package-Manager: Portage-2.3.51, Repoman-2.3.12 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'app-admin/metalog/files')
-rw-r--r--app-admin/metalog/files/metalog.initd-r128
1 files changed, 28 insertions, 0 deletions
diff --git a/app-admin/metalog/files/metalog.initd-r1 b/app-admin/metalog/files/metalog.initd-r1
new file mode 100644
index 000000000000..bb947bdadf8d
--- /dev/null
+++ b/app-admin/metalog/files/metalog.initd-r1
@@ -0,0 +1,28 @@
+#!/sbin/openrc-run
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+pidfile="${PIDFILE:-/run/metalog.pid}"
+command="/usr/sbin/metalog"
+command_args="--pidfile=${pidfile} --daemonize ${METALOG_OPTS}"
+
+extra_started_commands="buffer unbuffer"
+
+depend() {
+ need localmount
+ use clock hostname
+ after bootmisc
+ provide logger
+}
+
+buffer() {
+ ebegin "Enabling log buffering"
+ start-stop-daemon --exec "${command}" --signal USR2 --pidfile "${pidfile}"
+ eend ${?}
+}
+
+unbuffer() {
+ ebegin "Disabling log buffering"
+ start-stop-daemon --exec "${command}" --signal USR1 --pidfile "${pidfile}"
+ eend ${?}
+}