init script update to stop head error: "cannot open /xxxx/ndo2db.lock for reading: No such file or directory"
box293 opened this issue · 1 comments
box293 commented
When the stop function runs, it is not uncommon to see this error message:
Stopping ndo2db: head: cannot open `/usr/local/nagios/var/ndo2db.lock' for reading: No such file or directory
done.
Starting ndo2db: done.
In the file daemon-init.in if we add 2>&1 to line 160 it stops this message:
if status_ndo2db > /dev/null 2>&1; then
Also we should do it for line 167 as well:
if status_ndo2db > /dev/null 2>&1; then
jfrickson commented
Fixed by commit 766ba54
in branch https://github.com/NagiosEnterprises/ndoutils/tree/ndoutils-2.1b2