Comment 10 for bug 1878005

Revision history for this message
Jason R (freyasyn) wrote :

ubuntu@ubuntu:~$ systemctl status chrony

 chrony.service - chrony, an NTP client/server
     Loaded: loaded (/lib/systemd/system/chrony.service; enabled; vendor preset>
     Active: failed (Result: protocol) since Wed 2020-04-01 17:24:19 UTC; 6min >
       Docs: man:chronyd(8)
             man:chronyc(1)
             man:chrony.conf(5)
    Process: 1201 ExecStart=/usr/lib/systemd/scripts/chronyd-starter.sh $DAEMON>
    Process: 1230 ExecStartPost=/usr/lib/chrony/chrony-helper update-daemon (co>

Apr 01 17:24:18 ubuntu systemd[1]: Starting chrony, an NTP client/server...
Apr 01 17:24:19 ubuntu chronyd[1224]: chronyd version 3.5 starting (+CMDMON +NT>
Apr 01 17:24:19 ubuntu systemd[1]: chrony.service: New main PID 1224 does not e>
Apr 01 17:24:19 ubuntu systemd[1]: chrony.service: Failed with result 'protocol>
Apr 01 17:24:19 ubuntu systemd[1]: Failed to start chrony, an NTP client/server.
lines 1-14/14 (END)
ubuntu@ubuntu:~$ cat /run/chronyd.pid
cat: /run/chronyd.pid: No such file or directory
ubuntu@ubuntu:~$ ps axlf | grep $(cat /run/chronyd.pid)
cat: /run/chronyd.pid: No such file or directory
Usage: grep [OPTION]... PATTERNS [FILE]...
Try 'grep --help' for more information.
ubuntu@ubuntu:~$ ps axlf | grep chrony
0 1000 1693 1676 20 0 5952 512 pipe_w S+ pts/0 0:00 \_ grep --color=auto chrony

root@ubuntu:/home/ubuntu# source /etc/default/chrony
root@ubuntu:/home/ubuntu# /usr/lib/systemd/scripts/chronyd-starter.sh $DAEMON_OPTS
root@ubuntu:/home/ubuntu# echo $?
0
root@ubuntu:/home/ubuntu# ps axlf | grep chrony
0 0 1712 1696 20 0 5952 520 pipe_w S+ pts/0 0:00 \_ grep --color=auto chrony