[Bug 732912] New: Bogus systemd log message regarding sendmail
https://bugzilla.novell.com/show_bug.cgi?id=732912 https://bugzilla.novell.com/show_bug.cgi?id=732912#c0 Summary: Bogus systemd log message regarding sendmail Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: SuSE Other Status: NEW Severity: Minor Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: nrickert@ameritech.net QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0 (note: the operating system selector for reports needs an entry for 12.1) When looking through /var/log/messages (researching unrelated bug 732910), I noticed some bogus lines relating to "sendmail". Nov 26 23:52:19 nwr2 echo[4075]: Initializing SMTP port (sendmail) .. Nov 26 23:52:19 nwr2 systemd[1]: Failed to read PID file /var/run/sendmail.pid a fter start. The service might be broken. .. Nov 26 23:52:36 nwr2 systemd[1]: Failed to read PID file /var/spool/clientmqueue/sm-client.pid after start. The service might be broken. In fact, sendmail is running fine, and the two "pid" files exist: -rw------- 1 root mail 54 Nov 26 23:52 /var/run/sendmail.pid -rw------- 1 mail mail 53 Nov 26 23:52 /var/spool/clientmqueue/sm-client.pid This might be a timing issue. Perhaps systemd is checking for the existence of the files a few milliseconds too early. It would be better to not have those log messages at all, than to have them when they are wrong. I see those messages on every boot. The system uses AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ in case that is relevant (the dual core might be relevant) Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c1
Cristian Rodríguez
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c2
--- Comment #2 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c3
--- Comment #3 from Neil Rickert
Does sendmail uses an initscript or a systemd .service file ?
There's certainly an initscript. I'm not sure where to look for ".service" files. Directory "/lib/systemd/system" contains: -rw-r--r-- 1 root root 510 Oct 29 14:59 sendmail-client.path -rw-r--r-- 1 root root 849 Oct 29 14:59 sendmail-client.service -rw-r--r-- 1 root root 1402 Oct 29 14:59 sendmail.service I would guess that means it is using a ".service" file. There are symlinks to these from files in "/etc/systemd/system/multi-user.target.wants". I guess I will eventually get the hang of how systemd does things. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c4
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c5
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c6
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c7
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c8
--- Comment #8 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c9
Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c10
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c11
--- Comment #11 from Dr. Werner Fink
ps ax | grep sendmail 17395 ? Ss 1:39 sendmail: accepting connections 17401 ? Ss 0:00 sendmail: Queue control 17402 ? S 2:27 sendmail: running queue: /var/spool/clientmqueue 27775 pts/2 S+ 0:00 grep sendmail ps auxc | grep sendmail root 17395 0.0 0.0 11504 772 ? Ss Sep20 1:39 sendmail mail 17401 0.0 0.0 7588 420 ? Ss Sep20 0:00 sendmail mail 17402 0.0 0.0 26780 1504 ? S Sep20 2:27 sendmail
the pid file /var/run/sendmail.pid belongs to 17395 here:
sudo cat /var/run/sendmail.pid 17395 /usr/sbin/sendmail -L sendmail -Am -bd -q30m -om
we have either a race or systemd can not handle a simply pid file if more that one process us running (and both looks more like a bug of systemd). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c12
--- Comment #12 from Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c13
--- Comment #13 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c14
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c15
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c16
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c17
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c18
Cristian Rodríguez
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c19
--- Comment #19 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c20
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c21
--- Comment #21 from Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c22
--- Comment #22 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c23
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c24
--- Comment #24 from Cristian Rodríguez
please test package in home:fcrozat:systemd / systemd, systemd folk apparently fixed systemd to correctly handle sendmail (and other similar daemon) without complaining anymore and I've included their patches.
That worked for my case, thanks :-D Wow, looking at the changeset, this systemd stuff is even more clever than I thought ;) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c25
--- Comment #25 from Neil Rickert
please test package in home:fcrozat:systemd / systemd
That works in my testing, too. Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c26
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c27
--- Comment #27 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c28
--- Comment #28 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c29
--- Comment #29 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c31
Cristian Rodríguez
https://bugzilla.novell.com/show_bug.cgi?id=732912
https://bugzilla.novell.com/show_bug.cgi?id=732912#c32
--- Comment #32 from Frederic Crozat
participants (1)
-
bugzilla_noreply@novell.com