Quellcode |
|
1 2 3 |
hafgan # systemctl --failed UNIT LOAD ACTIVE SUB DESCRIPTION ● ntpdate.service loaded failed failed Set time via NTP using ntpdate |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
hafgan # systemctl status ntpdate ● ntpdate.service - Set time via NTP using ntpdate Loaded: loaded (/usr/lib64/systemd/system/ntpdate.service; enabled; vendor preset: disabled) Drop-In: /etc/systemd/system/ntpdate.service.d └─00gentoo.conf Active: failed (Result: exit-code) since Sa 2016-10-29 12:58:35 CEST; 10min ago Process: 493 ExecStart=/usr/sbin/ntpdate -b -u $SERVER (code=exited, status=1/FAILURE) Main PID: 493 (code=exited, status=1/FAILURE) Okt 29 12:58:35 wega systemd[1]: Starting Set time via NTP using ntpdate... Okt 29 12:58:35 wega ntpdate[493]: Exiting, name server cannot be used: Temporary failure in name resolution (-3)29 Oct 12:58:35 ntpdate[493]: name server cannot be used: Temporary failure in name resolution (-3) Okt 29 12:58:35 wega systemd[1]: ntpdate.service: Main process exited, code=exited, status=1/FAILURE Okt 29 12:58:35 wega systemd[1]: Failed to start Set time via NTP using ntpdate. Okt 29 12:58:35 wega systemd[1]: ntpdate.service: Unit entered failed state. Okt 29 12:58:35 wega systemd[1]: ntpdate.service: Failed with result 'exit-code'. |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
hafgan # systemctl start ntpdate hafgan # systemctl status ntpdate ● ntpdate.service - Set time via NTP using ntpdate Loaded: loaded (/usr/lib64/systemd/system/ntpdate.service; enabled; vendor preset: disabled) Drop-In: /etc/systemd/system/ntpdate.service.d └─00gentoo.conf Active: active (exited) since Sa 2016-10-29 13:14:04 CEST; 5s ago Process: 1677 ExecStart=/usr/sbin/ntpdate -b -u $SERVER (code=exited, status=0/SUCCESS) Main PID: 1677 (code=exited, status=0/SUCCESS) Okt 29 13:10:22 wega systemd[1]: Starting Set time via NTP using ntpdate... Okt 29 13:14:04 wega ntpdate[1677]: 29 Oct 13:14:04 ntpdate[1677]: step time server 131.188.3.221 offset 212.725721 sec Okt 29 13:14:04 wega systemd[1]: Started Set time via NTP using ntpdate. |
Quellcode |
|
1 2 3 4 5 6 |
# cat /etc/systemd/system/ntpdate.service.d/01dependency.conf [Unit] #Requires=dhcpcd.service After=dhcpcd.service #Requires=network-online.target #After=network-online.target |
Quellcode |
|
1 2 3 |
# Define network online dependency rc_samba_need="net-online" rc_ntp_client_need="net-online" |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »bell« (03.11.2017, 22:42)
Ich habe dort einmal unter "interfaces" meine WLAN-Adapter eingetragen, trotzdem klappt es nichtZitat
Falls net-online nicht funktioniert, es gibt noch ein Paar Einstellungen in der /etc/conf.d/net-online die helfen können