- Plesk for Linux
Note: This article has the reference to the issues with the fixes available:
- #PPP-38825 "On Debian 9, sw-engine-kv no longer slows down the server reboot."
- Plesk Onyx 17.9 Preview 10 15 January 2019 (Linux)
- #PPPM-9437 "90 seconds delay during shutdown (reboot) due to sw-engine-kv (as PPP-38825)"
Server takes more than 90 seconds to reboot on the server with Plesk;
After 90 seconds of waiting, system sends SIGKILL to sw-engine-kv:
CONFIG_TEXT: [38089.873448] systemd-shutdown: Sending SIGTERM to remaining processes...
[38089.883744] systemd-journald: Received SIGTERM from PID 1 (systemd-shutdow).
[38179.881890] systemd-shutdown: Sending SIGKILL to remaining processes...
[38179.889191] systemd-shutdown: Sending SIGKILL to PID 979 (sw-engine-kv).
sw-engine-kv also does not get killed when sw-engine is stopped:
# systemctl stop sw-engine
# ps aux | grep sw-engine
psaadm 977 0.0 0.5 338712 21552 ? S 06:49 0:00 sw-engine-kv
Bug with ID #PPPM-9437 that will be fixed in upcoming Plesk updates.
As a workaround:
- Connect to the server via SSH
Create a directory:
# mkdir /etc/systemd/system/sw-engine.service.d/
Add the required lines to the file by running this command:
# echo -e "[Service]\nExecStop=/usr/bin/killall -KILL sw-engine-kv" > /etc/systemd/system/sw-engine.service.d/override.conf
Reload sw-engine service:
# systemctl daemon-reload
After that, sw-engine service will be shutting down properly and restart will happen quickly.