diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-admin/abrt/files/abrt-2.0.12-r1-init | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-admin/abrt/files/abrt-2.0.12-r1-init')
-rw-r--r-- | app-admin/abrt/files/abrt-2.0.12-r1-init | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/app-admin/abrt/files/abrt-2.0.12-r1-init b/app-admin/abrt/files/abrt-2.0.12-r1-init new file mode 100644 index 000000000000..3fb32b7c3e43 --- /dev/null +++ b/app-admin/abrt/files/abrt-2.0.12-r1-init @@ -0,0 +1,76 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="Automated crash detection service" + +depend() { + need dbus logger +} + +start() { + ebegin "Starting abrtd" + start-stop-daemon --start --quiet --pidfile /var/run/abrt/abrtd.pid \ + --exec /usr/sbin/abrtd -- ${ABRTD_OPTS} + eend $? + + if [ "${START_VMCORE}" = "yes" ]; then + ebegin "Running abrt-harvest-vmcore" + /usr/sbin/abrt-harvest-vmcore + eend $? + fi + + if [ "${START_CCPP}" = "yes" ]; then + ebegin "Installing abrt-ccpp hook" + /usr/sbin/abrt-install-ccpp-hook install + eend $? + fi + + if [ "${START_OOPS}" = "yes" ]; then + ebegin "Starting abrt-dump-oops" + start-stop-daemon --start --quiet \ + --pidfile /var/run/abrt/abrt-dump-oops.pid \ + --make-pidfile --background \ + --exec /usr/bin/abrt-watch-log -- \ + -F "`/usr/bin/abrt-dump-oops -m`" ${OOPS_WATCH_LOG} -- \ + /usr/bin/abrt-dump-oops ${OOPS_DUMP_OPTS} + eend $? + fi + + if [ "${START_XORG}" = "yes" ]; then + ebegin "Starting abrt-dump-xorg" + start-stop-daemon --start --quiet \ + --pidfile /var/run/abrt/abrt-dump-xorg.pid \ + --make-pidfile --background \ + --exec /usr/bin/abrt-watch-log -- \ + -F "`/usr/bin/abrt-dump-xorg -m`" ${XORG_WATCH_LOG} -- \ + /usr/bin/abrt-dump-xorg ${XORG_DUMP_OPTS} + eend $? + fi +} + +stop() { + if [ "${START_XORG}" = "yes" ]; then + ebegin "Stopping abrt-dump-xorg" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/abrt/abrt-dump-xorg.pid + eend $? + fi + + if [ "${START_OOPS}" = "yes" ]; then + ebegin "Stopping abrt-dump-oops" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/abrt/abrt-dump-oops.pid + eend $? + fi + + if [ "${START_CCPP}" = "yes" ]; then + ebegin "Uninstalling abrt-ccpp hook" + /usr/sbin/abrt-install-ccpp-hook uninstall + eend $? + fi + + ebegin "Stopping abrtd" + start-stop-daemon --stop --quiet --pidfile /var/run/abrt/abrtd.pid + eend $? +} |