mcchae / docker-ntp-server

NTP container service
3 stars 1 forks source link

chronyd.sh has incorrect pid file path #1

Open Ape opened 5 years ago

Ape commented 5 years ago

chronyd.sh removed the pid file on startup, but the path is incorrect. It should be /var/run/chrony/chronyd.pid.

This sometimes causes the following error:

Fatal error : Another chronyd may already be running (pid=1), check /var/run/chrony/chronyd.pid
GirijaPolicherla commented 3 years ago

When we triyng to access the ntp server getting below error .Can you please help me any solution 2021-08-06T11:29:03Z chronyd version 3.5 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +SECHASH +IPV6 +DEBUG) 2021-08-06T11:29:03Z Fatal error : Another chronyd may already be running (pid=1526963), check /var/run/chrony/chronyd.pid

gongxulei commented 10 months ago

!/bin/sh

mkdir -p /run/chrony/

clear chronyd.pid

echo "" > /run/chrony/chronyd.pid chronyd -d -s -f /etc/chrony.conf