diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2020-01-05 14:17:30 +0100 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2020-01-05 14:17:40 +0100 |
commit | 634ea4fe59e85f2dab3c0aa470248f514da8c5e2 (patch) | |
tree | 642cd0a7fc5e6429e6128a9d645a37c373aa5915 /app-admin/sysklogd/files | |
parent | app-admin/sysklogd: Bump to version 2.1 (diff) | |
download | gentoo-634ea4fe59e85f2dab3c0aa470248f514da8c5e2.tar.gz gentoo-634ea4fe59e85f2dab3c0aa470248f514da8c5e2.tar.bz2 gentoo-634ea4fe59e85f2dab3c0aa470248f514da8c5e2.zip |
app-admin/sysklogd: Removed old
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'app-admin/sysklogd/files')
-rw-r--r-- | app-admin/sysklogd/files/sysklogd.rc8 | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/app-admin/sysklogd/files/sysklogd.rc8 b/app-admin/sysklogd/files/sysklogd.rc8 deleted file mode 100644 index 920ab9633264..000000000000 --- a/app-admin/sysklogd/files/sysklogd.rc8 +++ /dev/null @@ -1,94 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License, v2 or later - -extra_started_commands="reload" - -depend() { - need clock hostname - provide logger -} - -has_klogd() { - [ -x "/usr/sbin/klogd" ] -} - -start_daemon() { - local retval=0 - local daemon="$1" - local options="$2" - local fg_opt="" - - case "${daemon}" in - syslogd) - fg_opt="-F" - ;; - klogd) - fgopt="-n" - ;; - *) - return 1 - ;; - esac - - ebegin "sysklogd -> start: ${daemon}" - start-stop-daemon --start --exec /usr/sbin/"${daemon}" \ - -b -m --pidfile /var/run/"${daemon}".pid \ - -- ${options} ${fg_opt} - retval=$? - eend ${retval} "Failed to start ${daemon}" - - return ${retval} -} - -stop_daemon() { - local retval=0 - local daemon="$1" - - [ -z "${daemon}" ] && return 1 - - ebegin "sysklogd -> stop: ${daemon}" - # syslogd can be stubborn some times (--retry 15)... - start-stop-daemon --stop --retry 15 --quiet --pidfile /var/run/"${daemon}".pid - retval=$? - eend ${retval} "Failed to stop ${daemon}" - - return ${retval} -} - -start() { - start_daemon "syslogd" "${SYSLOGD}" || return 1 - - # klogd do not always start proper if started too early - sleep 1 - - if has_klogd && ! start_daemon "klogd" "${KLOGD}" ; then - stop_daemon "syslogd" - return 1 - fi - - return 0 -} - -stop() { - if has_klogd ; then - stop_daemon "klogd" || return 1 - fi - stop_daemon "syslogd" || return 1 - return 0 -} - -reload() { - local ret=0 - - ebegin "Reloading configuration" - - start-stop-daemon --signal HUP --pidfile /var/run/syslogd.pid - ret=$((${ret} + $?)) - if has_klogd ; then - start-stop-daemon --signal USR1 --pidfile /var/run/klogd.pid - ret=$((${ret} + $?)) - fi - - eend ${ret} -} |