summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Savchenko <bircoph@gentoo.org>2017-07-09 03:45:46 +0300
committerAndrew Savchenko <bircoph@gentoo.org>2017-07-09 04:05:20 +0300
commit1c834f0e057e989ac80782ad2985a97658957121 (patch)
tree0e1b36b8c0a73cf97559a42c8665cd46d78f41f8 /app-admin/abrt
parentgnome-base/gnome-settings-daemon: fix optional wacom plugin building (diff)
downloadgentoo-1c834f0e057e989ac80782ad2985a97658957121.tar.gz
gentoo-1c834f0e057e989ac80782ad2985a97658957121.tar.bz2
gentoo-1c834f0e057e989ac80782ad2985a97658957121.zip
app-admin/abrt: fix bug 609126
Fix init script to be sh-compatible. Package-Manager: Portage-2.3.6, Repoman-2.3.2 Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
Diffstat (limited to 'app-admin/abrt')
-rw-r--r--app-admin/abrt/files/abrt-2.0.12-r1-init16
1 files changed, 8 insertions, 8 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
index fd67bb0f3f75..3fb32b7c3e43 100644
--- a/app-admin/abrt/files/abrt-2.0.12-r1-init
+++ b/app-admin/abrt/files/abrt-2.0.12-r1-init
@@ -1,5 +1,5 @@
#!/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"
@@ -14,19 +14,19 @@ start() {
--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 \
@@ -37,7 +37,7 @@ start() {
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 \
@@ -50,21 +50,21 @@ start() {
}
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 $?