When `/etc/init.d/sntpd start` running pid file does not created and openrc produce status crash. # /etc/init.d/sntpd start * Starting sntpd ... [ ok ] # ps ax |grep sntpd 4968 ? Ss 0:00 /usr/sbin/sntpd -p0 -s 0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org pool.ntp.org # /etc/init.d/sntpd status * status: crashed # ls -l /run/sntpd.pid ls: cannot access '/run/sntpd.pid': No such file or directory # /etc/init.d/sntpd start * WARNING: sntpd has already been started ------------------- # rc-update add sntpd * service sntpd added to runlevel default # openrc * Starting sntpd ... [ ok ] # openrc * Starting sntpd ... [ ok ] # openrc * Starting sntpd ... [ ok ] # ps ax |grep sntpd 5386 ? Ss 0:00 /usr/sbin/sntpd -p0 -s pool.ntp.org 5414 ? Ss 0:00 /usr/sbin/sntpd -p0 -s pool.ntp.org 5444 ? Ss 0:00 /usr/sbin/sntpd -p0 -s pool.ntp.org # /etc/init.d/sntpd status * status: crashed ------------ Portage 2.3.103 (python 3.7.8-final-0, default/linux/amd64/17.1, gcc-9.3.0, glibc-2.31-r6, 4.14.32-std522-amd64 x86_64) sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.42.1::gentoo app-shells/bash: 5.0_p18::gentoo Reproducible: Always
That's strange, I haven't observed that, will look into it.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0afd56d1ce1f0d09006e62f182646657fb0f7b0 commit a0afd56d1ce1f0d09006e62f182646657fb0f7b0 Author: Conrad Kostecki <conikost@gentoo.org> AuthorDate: 2020-08-25 10:32:58 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2020-08-25 10:36:12 +0000 net-misc/sntpd: fix creation of pidfile Also added missing systemd inherit. Closes: https://bugs.gentoo.org/738870 Closes: https://bugs.gentoo.org/738894 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> net-misc/sntpd/files/sntpd.initd-r1 | 14 ++++++++++++++ net-misc/sntpd/sntpd-3.0-r1.ebuild | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+)