chronyd wrong pid file path
OS: Latest Alpine 3.8.1 Standard x86_64
Bug:
localhost:~# service chronyd restart
* Starting chronyd …
* start-stop-daemon: failed to start `/usr/sbin/chronyd’
* Failed to start chronyd [ !! ]
* ERROR: chronyd failed to start
Reason:
There is no “/var/run/chronyd.pid” (it’s “/var/run/chrony/chronyd.pid”)
Solution:
Change file “/etc/init.d/chronyd” line 71 from “PIDFILE=/var/run/chronyd.pid” to “PIDFILE=/var/run/chrony/chronyd.pid”
(from redmine: issue id 9674, created on 2018-11-21, closed on 2019-05-04)
- Relations:
- duplicates #9645 (closed)
- Changesets:
- Revision a1a3fd02 on 2018-12-26T16:20:31Z:
main/chrony: update PIDFILE location
The default pidfile location changed with chrony 3.4 [0] but wasn't
changed in the OpenRC service. Therefore OpenRC was no longer able to
detect the status of the chronyd service.
Fixes #9674
Fixes #9645
[0]: https://git.tuxfamily.org/chrony/chrony.git/commit/?h=3.4&id=e50dc739d88feca6e0da034406034f3d3cf60ca4