conf: do not check, write and delete PID file if set to '/'

If the pid file path is specified as '/', skip handling it,
as it is not only unnecessary but complicates managing the
service. A systemd unit can manage the program without any
need for this functionality, and it makes process tracking
simpler and more robust.
The implementation matches the bindcmdaddress directive.
This commit is contained in:
Luca Boccassi
2024-08-21 20:21:47 +01:00
committed by Miroslav Lichvar
parent e30f937f6a
commit 1ab5b88939
2 changed files with 18 additions and 1 deletions

View File

@@ -2781,6 +2781,8 @@ e.g.:
----
pidfile /run/chronyd.pid
----
+
Setting this directive to _/_ disables writing and checking of the PID file.
[[ptpport]]*ptpport* _port_::
The *ptpport* directive enables *chronyd* to send and receive NTP messages