[Linuxptp-devel] [PATCH 0/3] timemaster improvements

2016-07-14 Thread Miroslav Lichvar
Here are some small improvements for the timemaster program I had in my todo list. The first extends possibilities for configuration of individual PTP/NTP sources, the second is useful to avoid conflicts with time sources that are not started by timemaster (e.g. gpsd), and the third one should allo

[Linuxptp-devel] [PATCH 3/3] timemaster: ignore failures of non-essential processes.

2016-07-14 Thread Miroslav Lichvar
Assume only the chronyd or ntpd process is essential for synchronization of the system clock and ignore SIGCHLD from other processes. This should provide resiliency against possible bugs in ptp4l or phc2sys that can terminate the processes. Signed-off-by: Miroslav Lichvar --- timemaster.c | 31 +

[Linuxptp-devel] [PATCH 2/3] timemaster: add option to specify first SHM segment.

2016-07-14 Thread Miroslav Lichvar
This allows using a sequence of SHM segments that starts with a number larger than zero, which can be useful to avoid conflicts with time sources that are not started by timemaster, e.g. gpsd using segments number 0 and 1. Signed-off-by: Miroslav Lichvar --- timemaster.8 | 8 timemaste

[Linuxptp-devel] [PATCH 1/3] timemaster: allow arbitrary options in server/refclock directives.

2016-07-14 Thread Miroslav Lichvar
Instead of trying to support all options of the server and refclock directives in both NTP implementations, add an "ntp_options" option which specifies a string that is added directly to the lines in the chronyd/ntpd configuration file. Signed-off-by: Miroslav Lichvar --- timemaster.8 | 14 +