Description
While stopping and starting snmp service, it was observed that the same error message is repeatedly pushed to syslog.
Initial analysis suggest the logic here may have issues.
/etc/rsyslog.d/supervisor.conf => InputFileStateFile
Steps to reproduce the issue:
- systemctl stop snmp, systemctl start snmp multiple times
- tail -F /var/log/syslog | grep "not expected"
- The following logging happens everytime snmp service start. Notice the syslog time vs supervisord time
Describe the results you received:
Apr 26 22:43:48.757317 str-a7060cx-acs-1 INFO supervisord 2018-04-26 21:07:20,342 INFO exited: snmpd (terminated by SIGHUP; not expected)
Apr 26 22:45:58.609038 str-a7060cx-acs-1 INFO supervisord 2018-04-26 21:07:20,342 INFO exited: snmpd (terminated by SIGHUP; not expected)
Apr 26 23:04:25.800888 str-a7060cx-acs-1 INFO supervisord 2018-04-26 21:07:20,342 INFO exited: snmpd (terminated by SIGHUP; not expected)
Describe the results you expected:
After deleting the above line from supervisor/supervisord.log, and repeat the same steps of stopping and starting snmp, the issue was not observed
Additional information you deem important (e.g. issue happens only occasionally):
**Output of `show version`:**
```
admin@str-a7060cx-acs-1:/$ show version
SONiC Software Version: SONiC.20180330.16
```
Description
While stopping and starting
snmpservice, it was observed that the same error message is repeatedly pushed to syslog.Initial analysis suggest the logic here may have issues.
/etc/rsyslog.d/supervisor.conf => InputFileStateFile
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
After deleting the above line from
supervisor/supervisord.log, and repeat the same steps of stopping and starting snmp, the issue was not observedAdditional information you deem important (e.g. issue happens only occasionally):