Removed PID from snmptraps image. Possible to use readonly filesystem

This commit is contained in:
Alexey Pustovalov 2026-07-24 18:59:43 +09:00
parent d0c5869b9d
commit de2f409ea1
2 changed files with 0 additions and 3 deletions

View file

@ -653,7 +653,6 @@ services:
- snmptraps:/var/lib/zabbix/snmptraps:rwz - snmptraps:/var/lib/zabbix/snmptraps:rwz
- ${DATA_DIRECTORY}/var/lib/zabbix/snmptrapd_config:/var/lib/zabbix/snmptrapd_config:rw - ${DATA_DIRECTORY}/var/lib/zabbix/snmptrapd_config:/var/lib/zabbix/snmptrapd_config:rw
- ${DATA_DIRECTORY}/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - ${DATA_DIRECTORY}/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro
tmpfs: /tmp
deploy: deploy:
resources: resources:
limits: limits:

View file

@ -4,8 +4,6 @@ snmpTrapdAddr udp6:1162
# Do not fork from the calling shell # Do not fork from the calling shell
doNotFork yes doNotFork yes
# File in which to store the process ID of the notification receiver
pidFile /tmp/snmptrapd.pid
# Disables support for the NOTIFICATION-LOG-MIB # Disables support for the NOTIFICATION-LOG-MIB
#doNotRetainNotificationLogs yes #doNotRetainNotificationLogs yes