HEX
Server: Apache/2.2.34 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141
System: Linux Kou-Etsu-Dou 4.4.59+ #25556 SMP PREEMPT Thu Mar 4 18:03:46 CST 2021 x86_64
User: hosam (1026)
PHP: 7.2.29
Disabled: NONE
Upload Files
File: //usr/share/init/snmpd.conf
description "SNMP Daemon"

author "Network Infrastructure Team"

start on syno.network.ready and syno.volume.ready
stop on runlevel [06]

console log
respawn
respawn limit 5 10

script
	isEnable=`synogetkeyvalue /etc/synoinfo.conf runsnmpd` || true
	startArg="127.0.0.1:161"

	if [ "$isEnable" == "yes" ]; then
		startArg="udp:161,udp6:161,tcp:161,tcp6:161"
	fi

	exec /usr/bin/snmpd -fLn -c /etc/snmp/snmpd.conf -p /var/run/snmpd.pid $startArg
end script

# vim:ft=upstart