Hello,
In my environment, when I stopped mariadb and then stopped zabbix-server, the wait time was always infinite, so
I think the most practical solution is to change
TimeoutSec=infinity in the service unit file to TimeoutSec=30.
In my environment, when I stopped mariadb and then stopped zabbix-server, the wait time was always infinite, so
I think the most practical solution is to change
TimeoutSec=infinity in the service unit file to TimeoutSec=30.
Code:
# /usr/lib/systemd/system/zabbix-server.service [Unit] Description=Zabbix Server After=syslog.target After=network.target After=mysql.service After=mysqld.service After=mariadb.service [Service] Environment="CONFFILE=/etc/zabbix/zabbix_server.conf" EnvironmentFile=-/etc/default/zabbix-server Type=forking Restart=on-failure PIDFile=/run/zabbix/zabbix_server.pid KillMode=control-group ExecStart=/usr/sbin/zabbix_server -c $CONFFILE ExecStop=/bin/sh -c '[ -n "$1" ] && kill -s TERM "$1"' -- "$MAINPID" RestartSec=10s TimeoutSec=infinity LimitNOFILE=65536:1048576 [Install] WantedBy=multi-user.target # /etc/systemd/system/zabbix-server.service.d/override.conf [Service] TimeoutStopSec=30
Comment