I keep getting this message in my email, daily, at midnight UTC:
newsyslog: can't notify daemon, pid 2090: No such process
This is generated by this entry:
$ grep hp http /etc/newsyslog.conf /var/log/httpd-*.log 640 28 * $D5 BG /var/run/httpd.pid 30
This rolls over the log files for me.
The message has been the same every day: pid 2090.
However, there is no process with that ID:
$ ps auwx | grep 2090 $
And that’s not the PID it should be using:
$ cat /var/run/httpd.pid 2442
And that process is definitely running:
$ ps auwx | grep 2442 root 2442 0.0 1.2 29368 18428 ?? Ss 8Jul13 3:34.00 /usr/local/sbin/httpd -DNOHTTPACCEPT
So… the question is: where is the system getting 2090 from?