summaryrefslogtreecommitdiffstats
path: root/abrt.init
diff options
context:
space:
mode:
authorNikola Pajkovsky <npajkovs@redhat.com>2010-02-22 16:59:41 +0100
committerNikola Pajkovsky <npajkovs@redhat.com>2010-02-22 16:59:41 +0100
commit963907e66dba396614d27836e21f250a32ab391d (patch)
tree2f23d741e366b781051b69d82a8f2ca3639410ae /abrt.init
parent867ea1ee3fd02e15487c308dc9e5ef2bb141f7c2 (diff)
downloadabrt-963907e66dba396614d27836e21f250a32ab391d.tar.gz
abrt-963907e66dba396614d27836e21f250a32ab391d.tar.xz
abrt-963907e66dba396614d27836e21f250a32ab391d.zip
fix initscript
Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
Diffstat (limited to 'abrt.init')
-rw-r--r--abrt.init10
1 files changed, 8 insertions, 2 deletions
diff --git a/abrt.init b/abrt.init
index c286c644..b4ff7d3f 100644
--- a/abrt.init
+++ b/abrt.init
@@ -18,6 +18,7 @@
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
+OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0
#
@@ -42,8 +43,8 @@ start() {
check
- # Check if it is already running
- if [ ! -f $LOCK ]; then
+ # Check if it is already running
+ if [ ! -f $LOCK || ! -f $OLD_LOCK ]; then
echo -n $"Starting abrt daemon: "
daemon $ABRT_BIN
RETVAL=$?
@@ -61,6 +62,7 @@ stop() {
killproc $ABRT_BIN
RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f $LOCK
+ [ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
echo
return $RETVAL
}
@@ -96,6 +98,10 @@ condrestart)
if [ -f $LOCK ]; then
restart
fi
+ # update from older version
+ if [ -f $OLD_LOCK ]; then
+ restart
+ fi
;;
status)
status abrt