#!/sbin/openrc-run
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
description="Automated crash detection service"
--exec /usr/sbin/abrtd -- ${ABRTD_OPTS}
eend $?
- if [[ "${START_VMCORE}" = "yes" ]]; then
+ if [ "${START_VMCORE}" = "yes" ]; then
ebegin "Running abrt-harvest-vmcore"
/usr/sbin/abrt-harvest-vmcore
eend $?
fi
- if [[ "${START_CCPP}" = "yes" ]]; then
+ if [ "${START_CCPP}" = "yes" ]; then
ebegin "Installing abrt-ccpp hook"
/usr/sbin/abrt-install-ccpp-hook install
eend $?
fi
- if [[ "${START_OOPS}" = "yes" ]]; then
+ if [ "${START_OOPS}" = "yes" ]; then
ebegin "Starting abrt-dump-oops"
start-stop-daemon --start --quiet \
--pidfile /var/run/abrt/abrt-dump-oops.pid \
eend $?
fi
- if [[ "${START_XORG}" = "yes" ]]; then
+ if [ "${START_XORG}" = "yes" ]; then
ebegin "Starting abrt-dump-xorg"
start-stop-daemon --start --quiet \
--pidfile /var/run/abrt/abrt-dump-xorg.pid \
}
stop() {
- if [[ "${START_XORG}" = "yes" ]]; then
+ 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
+ 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
+ if [ "${START_CCPP}" = "yes" ]; then
ebegin "Uninstalling abrt-ccpp hook"
/usr/sbin/abrt-install-ccpp-hook uninstall
eend $?