1 |
wraeth <wraeth@×××××××××.au> [14-09-30 14:44]: |
2 |
> -----BEGIN PGP SIGNED MESSAGE----- |
3 |
> Hash: SHA256 |
4 |
> |
5 |
> On 30/09/14 22:39, wraeth wrote: |
6 |
> > FWIW, there's a dispatcher script you can use (at least with NM) that |
7 |
> > calls chrony and sets it to online mode. |
8 |
> |
9 |
> Sorry, to clarify: when NetworkManager comes online, it can execute scripts |
10 |
> placed in /etc/NetworkManager/dispatcher.d. There's a script I came across [0] |
11 |
> that, when placed in the dispatcher directory, brings chrony online and syncs |
12 |
> time. |
13 |
> |
14 |
> [0] https://aur.archlinux.org/packages/networkmanager-dispatcher-chrony/ |
15 |
> - -- |
16 |
> wraeth |
17 |
> Key: 0xB2D9F759 |
18 |
> -----BEGIN PGP SIGNATURE----- |
19 |
> Version: GnuPG v2 |
20 |
> |
21 |
> iF4EAREIAAYFAlQqpSkACgkQXcRKerLZ91mOpQD8D88IsMKuz0nSyez89C7ru2Cm |
22 |
> sFwJr4g40Tmlgw5yBF8A/312Lztrab/PMZbW+opN3e18zWGnmPOparLuPjAONgzA |
23 |
> =8Qc8 |
24 |
> -----END PGP SIGNATURE----- |
25 |
> |
26 |
|
27 |
This feels little bit less than a k.i.s.s. ... ;) |
28 |
|
29 |
I put a call of |
30 |
/etc/init.d/ntp-client restart |
31 |
into |
32 |
postup() { } |
33 |
of /etc/conf.d/net |
34 |
|
35 |
which is a little more like a k.i.s.s. ;) |
36 |
Like that...runs fine and fast. And only once...no polling |
37 |
on this little machine. |
38 |
|
39 |
Thanks you all again for all the ideas and help! |
40 |
|
41 |
Best regards, |
42 |
mcc |