initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

41
metalog/metalog.initd Normal file
View File

@@ -0,0 +1,41 @@
#!/sbin/openrc-run
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
extra_started_commands="buffer unbuffer"
PIDFILE=/var/run/metalog.pid
depend() {
need localmount
use clock hostname
after bootmisc
provide logger
}
ssd() { start-stop-daemon --exec /usr/sbin/metalog --pidfile "${PIDFILE}" "$@" ; }
start() {
ebegin "Starting metalog"
ssd --start -- \
--daemonize --pidfile="${PIDFILE}" ${METALOG_OPTS}
eend $?
}
stop() {
ebegin "Stopping metalog"
ssd --stop
eend $?
}
buffer() {
ebegin "Enabling log buffering"
ssd --signal USR2
eend $?
}
unbuffer() {
ebegin "Disabling log buffering"
ssd --signal USR1
eend $?
}