
Andrei Borzenkov wrote:
09.07.2019 17:50, Per Jessen пишет:
Per Jessen wrote:
As part of migrating a mail cluster til leap15.1, I noticed that log messages from a custom-written daemon were being written to both /var/log/mail and to /var/log/messages - only intended for facility=LOG_MAIL. I noticed the same for spamd.
I have to take a closer look at spamd, but for our own stuff, it was some old code making assumptions (about running under sysvinit) that no longer hold true.
for testing whether a process is running under systemd - is getppid()==1 a good idea?
Do you mean "if /sbin/init is systemd" or "if program is running as system service as opposed to being launched by user"?
The latter - "if program is running as system service as opposed to being launched by user". -- Per Jessen, Zürich (22.0°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org