[chrony-users] Checking chrony.conf for syntax errors |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: [chrony-users] Checking chrony.conf for syntax errors
- From: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Date: Mon, 9 Mar 2020 09:38:35 +1300
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpcorp.com; s=a1-4; h=Feedback-ID:X-Smtpcorp-Track:To:Date:Message-Id: Subject:From:Reply-To:Sender:List-Unsubscribe; bh=5fLbBbhIZdUqyWhfChTwRZPN4hALo+44FaR+R36ZdlA=; b=mSvRlUOaQHm70nU1Mx2FzrM6XA qIMRpT9CbeqwotH5iEbEXaaHoAZRZpbbAZKXFhdsH+thUboDIgHwKxvI3x0/PgLhJUjdlgrr+y5G7 9TycqSETZF+tFXa+0+rySVseJTcw+/ZihK10jJ5iHoZOWW+xojF0CLJSzDZ4AsKdLanFUrorceCY8 bEaMNpuinUaewQnHNEmyx0K3X3LiUdL5qLNE/FtPaM9mjM4D0VB2KU3+9RSkkmkP0Fzg4f7JuyPuM +HW709xmVr4AqWgEPO+iCdzzf4d6vwRJd88iJsID78KHxFkcPTPOcg2N8GoZeHtpJ5yif9ygIaMlx NMrixUKg==;
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whatroute.net; i=@whatroute.net; q=dns/txt; s=s149811; t=1583699949; h=from : subject : to : message-id : date; bh=5fLbBbhIZdUqyWhfChTwRZPN4hALo+44FaR+R36ZdlA=; b=AQa5fEDB//zOSryawYjfwO9jQUiXLQGHxzQiLNwDz4v0PmXi4oH0GQRmeTm1swu8Wo5D/5 D+i+06NHa877YbZxlPokXVER9vovWSxH1hUJlHvqZe1fZh4hS/XrCNeM5tJESVHMSWsCEX6P X7/gbj8JUNefx8beJfICZEpeV+upYhzA5mQN0s8DVx6KeppyrG7smeH9tA5z1M75XZCj0BKj bpk9f9r4wmfnP7zHd7Vmh8JU+2fatb2vkaQ2LOgjbJTuhg1/VduaqsxUwU+h7RR+noNbttLZ BrHqPgn/bCxz41yBFOtzt64XF5SjRcBfQ+AieKlNfQgFidqO/CDdnoRQ==
- Feedback-id: 149811m:149811acx33YQ:149811sbcSqhNVyZ
I would like to check the chrony.conf file for syntax errors before replacing the working copy of the file
I think I need to use:
chronyd -Q -f path_to_new_file/chrony.conf
I made a file with a deliberate syntax error and got
bryan@number9 ~ % chronyd -Q -f path_to_new_file/chrony.conf
2020-03-08T20:26:58Z chronyd version DEV[3.5-171-gc3e34b8] starting (+CMDMON +NTP +REFCLOCK -RTC +PRIVDROP -SCFILTER -SIGND +ASYNCDNS -NTS -SECHASH +IPV6 -DEBUG)
2020-03-08T20:26:58Z Fatal error : Invalid command at line 21 in file path_to_new_file/chrony.conf
bryan@number9 ~ %
Is this in general what I might expect?
If I do this while chronyd is running will it cause any problems with the running instance?
Bryan Christianson
bryan@xxxxxxxxxxxxx
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.