[ZBXNEXT-5181] support systemctl reload zabbix-* Created: 2019 Apr 16  Updated: 2020 Jan 17

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Agent (G), Proxy (P), Server (S)
Affects Version/s: None
Fix Version/s: None

Type: New Feature Request Priority: Trivial
Reporter: Josh Soref Assignee: Michael Veksler
Resolution: Unresolved Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Steps to reproduce:

  1. Changes in configuration...
  2. Want to trigger a reload
  3. try systemctl reload zabbix-server

Result:

Failed to reload zabbix-server.service: Job type reload is not applicable for unit zabbix-server.service.

Expected:
It should just work.

 

/etc/systemd/system/zabbix-server.service.d/reload.conf is the general way to support it:

[Service]
ExecReload=/usr/sbin/zabbix_server -c $CONFFILE -R config_cache_reload

/etc/systemd/system/zabbix-proxy.service.d/reload.conf:

[Service]
ExecReload=/usr/sbin/zabbix_proxy -c $CONFFILE -R config_cache_reload

Generated at Thu Mar 28 20:46:32 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.