Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 738870 - =net-misc/sntpd-3.0 - /etc/init.d/sntpd fails to create .pid file
Summary: =net-misc/sntpd-3.0 - /etc/init.d/sntpd fails to create .pid file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrice Clement (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-24 23:00 UTC by Vladimir Varlamov
Modified: 2020-08-25 10:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Varlamov 2020-08-24 23:00:42 UTC
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
Comment 1 Conrad Kostecki gentoo-dev 2020-08-25 09:59:08 UTC
That's strange, I haven't observed that, will look into it.
Comment 2 Larry the Git Cow gentoo-dev 2020-08-25 10:36:29 UTC
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(+)