Hi Tony!

I’m not sure if I’m doing it right, but here’s what I did and what happened…

What I did:

Edited /lib/systemd/system/ntpsec-systemd-netif.path
Here’s a diff
> rbthomas@cube:~$ diff -c2 /SAVE//lib/systemd/system/ntpsec-systemd-netif.path 
> /lib/systemd/system/ntpsec-systemd-netif.path
> *** /SAVE//lib/systemd/system/ntpsec-systemd-netif.path       Mon Mar 11 
> 00:20:38 2019
> --- /lib/systemd/system/ntpsec-systemd-netif.path     Mon Mar 11 00:21:33 2019
> ***************
> *** 7,9 ****
>   
>   [Install]
> ! WantedBy=network-pre.target
> --- 7,10 ----
>   
>   [Install]
> ! After=network-online.target
> ! Wants=network-online.target
> rbthomas@cube:~$ 


Then i did
> root@cube:~# update-initramfs -u

and rebooted.

What happened:

I still get only the servers from the last “path” statement
.
Here’s what the journal says:
> rbthomas@cube:~$ journalctl -b | grep ntp
> Mar 11 00:23:43 cube kernel: Mountpoint-cache hash table entries: 2048 
> (order: 1, 8192 bytes)
> Mar 11 00:23:44 cube systemd[1]: 
> /lib/systemd/system/ntpsec-systemd-netif.path:7: Unknown lvalue 'After' in 
> section 'Install', ignoring
> Mar 11 00:23:44 cube systemd[1]: 
> /lib/systemd/system/ntpsec-systemd-netif.path:8: Unknown lvalue 'Wants' in 
> section 'Install', ignoring
> Mar 11 00:23:48 cube kernel: audit: type=1400 audit(1552289028.492:6): 
> apparmor="STATUS" operation="profile_load" profile="unconfined" 
> name="/usr/sbin/ntpd" pid=297 comm="apparmor_parser"
> Mar 11 00:23:48 cube audit[297]: AVC apparmor="STATUS" 
> operation="profile_load" profile="unconfined" name="/usr/sbin/ntpd" pid=297 
> comm="apparmor_parser"
> Mar 11 00:23:49 cube ntpd[350]: INIT: ntpd ntpsec-1.1.3 2019-02-04T07:38:48Z: 
> Starting
> Mar 11 00:23:50 cube ntp-systemd-wrapper[345]: 2019-03-11T00:23:49 ntpd[350]: 
> INIT: ntpd ntpsec-1.1.3 2019-02-04T07:38:48Z: Starting
> Mar 11 00:23:50 cube ntp-systemd-wrapper[345]: 2019-03-11T00:23:49 ntpd[350]: 
> INIT: Command line: /usr/sbin/ntpd -p /run/ntpd.pid -c /etc/ntpsec/ntp.conf 
> -g -N -u ntpsec:ntpsec
> Mar 11 00:23:49 cube systemd[1]: ntpsec.service: Can't open PID file 
> /run/ntpd.pid (yet?) after start: No such file or directory
> Mar 11 00:23:49 cube ntpd[350]: INIT: Command line: /usr/sbin/ntpd -p 
> /run/ntpd.pid -c /etc/ntpsec/ntp.conf -g -N -u ntpsec:ntpsec
> Mar 11 00:23:49 cube ntpd[354]: INIT: precision = 1.667 usec (-19)
> Mar 11 00:23:49 cube systemd[1]: Starting Wait for ntpd to synchronize system 
> clock...
> Mar 11 00:23:50 cube ntpd[354]: INIT: successfully locked into RAM
> Mar 11 00:23:50 cube ntpd[354]: CONFIG: readconfig: parsing file: 
> /etc/ntpsec/ntp.conf
> Mar 11 00:23:50 cube ntpd[354]: CLOCK: leapsecond file 
> ('/usr/share/zoneinfo/leap-seconds.list'): good hash signature
> Mar 11 00:23:50 cube ntpd[354]: CLOCK: leapsecond file 
> ('/usr/share/zoneinfo/leap-seconds.list'): loaded, expire=2019-06-28T00:00Z 
> last=2017-01-01T00:00Z ofs=37
> Mar 11 00:23:50 cube ntpd[354]: INIT: Using SO_TIMESTAMPNS
> Mar 11 00:23:50 cube ntpd[354]: IO: Listen and drop on 0 v6wildcard [::]:123
> Mar 11 00:23:50 cube ntpd[354]: IO: Listen and drop on 1 v4wildcard 
> 0.0.0.0:123
> Mar 11 00:23:50 cube ntpd[354]: IO: Listen normally on 2 lo 127.0.0.1:123
> Mar 11 00:23:50 cube ntpd[354]: IO: Listen normally on 3 lo [::1]:123
> Mar 11 00:23:50 cube ntpd[354]: IO: Listening on routing socket on fd #20 for 
> interface updates
> Mar 11 00:23:50 cube ntpd[354]: INIT: This system has a 32-bit time_t.
> Mar 11 00:23:50 cube ntpd[354]: INIT: This ntpd will fail on 
> 2038-01-19T03:14:07Z.
> Mar 11 00:23:51 cube ntpd[354]: DNS: dns_probe: us.pool.ntp.org, 
> cast_flags:8, flags:101
> Mar 11 00:23:51 cube ntpd[354]: DNS: dns_check: processing us.pool.ntp.org, 
> 8, 101
> Mar 11 00:23:51 cube ntpd[354]: DNS: dns_check: DNS error: -3, Temporary 
> failure in name resolution
> Mar 11 00:23:51 cube ntpd[354]: DNS: dns_take_status: us.pool.ntp.org=>temp, 9
> Mar 11 00:23:52 cube ntpd[354]: DNS: dns_probe: pool.rcthomas.org, 
> cast_flags:8, flags:121
> Mar 11 00:23:52 cube ntpd[354]: DNS: dns_check: processing pool.rcthomas.org, 
> 8, 121
> Mar 11 00:23:52 cube ntpd[354]: DNS: dns_check: DNS error: -3, Temporary 
> failure in name resolution
> Mar 11 00:23:52 cube ntpd[354]: DNS: dns_take_status: 
> pool.rcthomas.org=>temp, 9
> Mar 11 00:23:56 cube ntpd[354]: IO: Listen normally on 4 eth0 
> 192.168.3.129:123
> Mar 11 00:23:56 cube ntpd[354]: IO: Listen normally on 5 eth0 
> [fe80::d263:b4ff:fe00:912f%2]:123
> Mar 11 00:23:56 cube ntpd[354]: DNS: dns_probe: pool.rcthomas.org, 
> cast_flags:8, flags:121
> Mar 11 00:23:56 cube ntpd[354]: DNS: dns_check: processing pool.rcthomas.org, 
> 8, 121
> Mar 11 00:23:56 cube ntpd[354]: DNS: Pool taking: 192.168.3.207
> Mar 11 00:23:56 cube ntpd[354]: DNS: Pool taking: 192.168.3.111
> Mar 11 00:23:56 cube ntpd[354]: DNS: Pool taking: 192.168.3.4
> Mar 11 00:23:56 cube ntpd[354]: DNS: Pool taking: 192.168.1.14
> Mar 11 00:23:56 cube ntpd[354]: DNS: dns_take_status: 
> pool.rcthomas.org=>good, 8
> Mar 11 00:28:00 cube sudo[794]: rbthomas : TTY=pts/0 ; PWD=/home/rbthomas ; 
> USER=root ; COMMAND=/usr/sbin/service ntpsec restart
> Mar 11 00:28:00 cube ntpd[354]: ERR: ntpd exiting on signal 15 (Terminated)
> Mar 11 00:28:00 cube ntpd[354]: PROTO: 192.168.3.207 unlink local addr 
> 192.168.3.129 -> <null>
> Mar 11 00:28:00 cube ntpd[354]: PROTO: 192.168.3.111 unlink local addr 
> 192.168.3.129 -> <null>
> Mar 11 00:28:00 cube ntpd[354]: PROTO: 192.168.3.4 unlink local addr 
> 192.168.3.129 -> <null>
> Mar 11 00:28:00 cube ntpd[354]: PROTO: 192.168.1.14 unlink local addr 
> 192.168.3.129 -> <null>
> Mar 11 00:28:00 cube systemd[1]: ntpsec.service: Succeeded.

Examining the journal carefully, (specifically the lines labeled “Mar 11 
00:23:44”,
it looks like the [Install] stanza isn’t the right place to put the “After” 
“Wants” lines.

I’ll keep looking for a more appropriate place.  If you have any suggestions, 
please share them.

Thanks for the prompt response!
Rick

Reply via email to