aboutsummaryrefslogtreecommitdiffstats
path: root/main/chrony/chronyd.initd
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2018-12-26 17:01:41 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2018-12-26 17:20:31 +0100
commita1a3fd0238ae1c2a46ab402e9967162f2d1b1460 (patch)
treeedecd446f07db79d28d04d94595ad86d5bdadd47 /main/chrony/chronyd.initd
parent8c3ac244e38f16d27433f8c4e7baffac5695b3a8 (diff)
downloadaports-a1a3fd0238ae1c2a46ab402e9967162f2d1b1460.tar.bz2
aports-a1a3fd0238ae1c2a46ab402e9967162f2d1b1460.tar.xz
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
Diffstat (limited to 'main/chrony/chronyd.initd')
-rw-r--r--main/chrony/chronyd.initd4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/chrony/chronyd.initd b/main/chrony/chronyd.initd
index 51c1afad4a..569026f515 100644
--- a/main/chrony/chronyd.initd
+++ b/main/chrony/chronyd.initd
@@ -49,7 +49,7 @@ start() {
checkconfig || return $?
setxtrarg
- [ -n "${PIDFILE}" ] || PIDFILE=/var/run/chronyd.pid
+ [ -n "${PIDFILE}" ] || PIDFILE=/var/run/chrony/chronyd.pid
local daemon_args=
if yesno "$FAST_STARTUP"; then
@@ -68,7 +68,7 @@ start() {
stop() {
checkconfig || return $?
- [ -n "${PIDFILE}" ] || PIDFILE=/var/run/chronyd.pid
+ [ -n "${PIDFILE}" ] || PIDFILE=/var/run/chrony/chronyd.pid
ebegin "Stopping chronyd"
start-stop-daemon --stop --quiet \