```
```
```
ExecStart=bash -c "if /usr/bin/chronyc -h 127.0.0.1,::1 waitsync 60 0.1 0.0 1; then /usr/bin/chronyc makestep; /usr/bin/chronyc online; else /usr/bin/chronyc offline; fi"
```
This seems to work for the boot process: It steps the time if there is an internet connection and sets the sources to online, and runs `chronyc offline` if not. The latter should not even be necessary in my understanding, as the `pool` is already defined as `offline` in the chrony config file (correct?).
Now for the part that is not working as expected: chrony seems to ignore the `offline`, from both, the config file as well as the explicit `chronyc offline` call, in case the internet connection is established at a later stage, i.e. after chrony has been started. Looking at `chronyc activity`, it reports `1 sources with unknown address` before internet connection is established, and jumps to `4 sources online` after establishing the connection. How can I tell chrony to keep these sources offline?
If I start chrony with an active internet connection, it correctly sets the sources to `offline` in the beginning (info taken from `chronyc activity`), i.e. I need to explicitly set them online with `chronyc online` to tell chrony to make use of them.
Any other suggestion how to achieve the desired behavior? I want to avoid stopping chrony completely, as it also serves as a time server for other computers in the same network.
Best regards