Details
-
New Feature Request
-
Status: Closed
-
Trivial
-
Resolution: Duplicate
-
2.2.3, 2.3.0
-
None
-
AIX, Linux with systemd
Description
Today, init systems such as runit , systemd and on aix SRC (System Resource Controller) expect process does not close its controlling tty and continue to run on it.
This patches add this functionality to zabbix programs (agent, proxy and server). Patch works on aix and linux (manually tested).
What is probably still missing in this patch is replacement of output from zabbix.log to stdout for systemd.
Example run on AIX 6.1
[email protected]:/WORK/zabbix # lssrc -s zabbix_agentd Subsystem Group PID Status zabbix_agentd inoperative [email protected]:/WORK/zabbix # startsrc -s zabbix_agentd 0513-059 The zabbix_agentd Subsystem has been started. Subsystem PID is 33292522. [email protected]:/WORK/zabbix # lssrc -s zabbix_agentd Subsystem Group PID Status zabbix_agentd 33292522 active [email protected]:/WORK/zabbix # ps auxwww|grep 33292522 zabbix 33292522 0.0 0.0 860 884 - A 17:57:30 0:00 /opt/freeware/sbin/zabbix_agentd -f -c /etc/zabbix/zabbix_agentd.conf root 13238444 0.0 0.0 248 260 pts/0 A 17:57:40 0:00 grep 33292522 [email protected]:/WORK/zabbix # stopsrc -s zabbix_agentd 0513-044 The zabbix_agentd Subsystem was requested to stop. [email protected]:/WORK/zabbix # ps auxwww|grep 33292522 root 31064274 0.0 0.0 248 260 pts/0 A 17:57:49 0:00 grep 33292522 [email protected]:/WORK/zabbix # startsrc -s zabbix_agentd 0513-059 The zabbix_agentd Subsystem has been started. Subsystem PID is 31064276. [email protected]:/WORK/zabbix #
(creation of service)
mkssys -s zabbix_agentd -p /opt/freeware/sbin/zabbix_agentd -u `id -u zabbix` -S -n15 -f9 -a '-f -c /etc/zabbix/zabbix_agentd.conf'
Attachments
Issue Links
- duplicates
-
ZBXNEXT-611 Provide a way for daemons to (optionally) run in the foreground.
-
- Closed
-