Summary(pl.UTF-8): Zabbix - oprogramowanie do monitorowania sieci
Name: zabbix
Version: 6.0.13
-Release: 2
+Release: 3
License: GPL v2+
Group: Networking/Utilities
Source0: https://cdn.zabbix.com/zabbix/sources/stable/6.0/%{name}-%{version}.tar.gz
# Get service config - may override defaults
[ -f /etc/sysconfig/zabbix_server ] && . /etc/sysconfig/zabbix_server
+# Set default shutdown timeout if it is not set in service config
+ZABBIX_SHUTDOWN_TIMEOUT=${ZABBIX_SHUTDOWN_TIMEOUT:-60}
+
pidfile="/var/run/zabbix/zabbix_server.pid"
start() {
# Stop daemons.
msg_stopping "Zabbix Server"
killproc --pidfile $pidfile zabbix_server -TERM
+
+ if [ -f "$pidfile" ]; then
+ show "Waiting for Zabbix Server to stop"
+ busy
+
+ timeout=0
+ while : ; do
+ [ ! -f "$pidfile" ] || break
+ if [ $timeout -ge $ZABBIX_SHUTDOWN_TIMEOUT ]; then
+ RETVAL=1
+ break
+ fi
+ sleep 1 && echo -n "."
+ timeout=$((timeout+1))
+ done
+ ok
+ fi
+
rm -f /var/lock/subsys/zabbix_server
}