Группа :: Мониторинг
Пакет: atop
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: atop-1.22-alt-init.patch
Скачать
Скачать
diff -urN atop-1.22.orig/atop.init atop-1.22/atop.init
--- atop-1.22.orig/atop.init 2007-11-19 09:24:57 +0200
+++ atop-1.22/atop.init 2007-12-21 01:06:14 +0200
@@ -2,13 +2,19 @@
#
# atop This shell script takes care of initializing atop
#
-# chkconfig: 2345 85 15
+# chkconfig: - 85 15
# description: Atop is a system and process activity monitor
#
+# Do not load RH compatibility interface.
+WITHOUT_RC_COMPAT=1
+
# Check existance of binaries
[ -f /usr/bin/atop ] || exit 0
+# Source function library.
+. /etc/init.d/functions
+
PIDFILE=/var/run/atop.pid
RETVAL=0
@@ -26,7 +32,7 @@
fi
;;
- stop)
+ stop|condstop)
# Check if atop runs
#
if [ -e $PIDFILE ] && ps -p `cat $PIDFILE` | grep 'atop$' > /dev/null
@@ -40,18 +46,20 @@
;;
status)
+ status --pidfile "$PIDFILE" --expect-user root -- atop
+ RETVAL=$?
;;
- reload)
+ reload|condreload)
/etc/atop/atop.daily
;;
- restart)
+ restart|condrestart)
/etc/atop/atop.daily
;;
*)
- echo "Usage: $0 [start|stop|status|reload|restart]"
+ echo "Usage: $0 [start|stop|status|reload|restart|condstop|condreload|condrestart]"
exit 1
esac