[ZBX-25049] Replace "service" commands with "systemctl" commands Created: 2024 Aug 15  Updated: 2024 Aug 25  Resolved: 2024 Aug 25

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.44rc1, 6.0.34rc1, 6.4.19rc1, 7.0.4rc1, 7.2.0alpha1

Type: Documentation task Priority: Trivial
Reporter: Markku Leiniƶ Assignee: Arturs Dancis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team A
Sprint: S24-W34/35
Story Points: 1

 Description   

In https://www.zabbix.com/documentation/current/en/manual/installation/upgrade/packages/debian_ubuntu there are "service" commands like

service zabbix-server stop

which are not usable anymore. Use systemd commands instead:

systemctl stop zabbix-server



 Comments   
Comment by Jurijs Klopovskis [ 2024 Aug 15 ]

The service command belongs to upstart. Ubuntu moved from upstart to systemd in 15.04. We did ship agent packages for Ubuntu 14.04 up until Zabbix 6.4 and dropped them in 7.0.

In general, I think that we can safely drop all mentions of old init systems from documentation. In other words, use systemctl everywhere.

Comment by Arturs Dancis [ 2024 Aug 21 ]

Documentation updated: Replaced all service commands with systemctl commands and fixed systemctl syntax on multiple pages in all supported versions; for example:

  • Zabbix processes > Agent (7.2, 7.0, 6.4, 6.0, 5.0)
  • Installation > Upgrade procedure > Upgrade from packages > Debian/Ubuntu (7.2, 7.0, 6.4, 6.0, 5.0), etc.
Generated at Mon Apr 14 01:15:07 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.