Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37038878
en ru br
Репозитории ALT
S:2.5.0-alt3
D:1.20-alt1
5.1: 1.23-alt3
4.1: 1.23-alt1
4.0: 1.17-alt1
www.altlinux.org/Changes

Другие репозитории
Upstream:1.21

Группа :: Мониторинг
Пакет: 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
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin