v.25.9Improvement

Fix detection of systemd

Fix detection of systemd in init.d script (fixes "Install packages" check). #86187 (Azat Khuzhin).
Fix the detection of systemd in the init.d script to ensure proper functionality during package installation checks.

Why it matters

The fix addresses an issue where the init.d script failed to correctly detect systemd, causing the "Install packages" check to malfunction. This improvement ensures that the system initialization scripts correctly recognize systemd, leading to smoother and more reliable package installation and service management.

How to use it

This fix is applied internally in the init.d script. Users benefit from it automatically after upgrading to the new version of ClickHouse, with no manual configuration required.