** Description changed:

- I've installed ntp service on the clean ubuntu 16.04 server system. 
Configured it. Checked that it works, but, after reboot, it doesn't start 
automatically.<br />
- When I check: 'systemctl is-enabled ntp', it shows enabled.<br />
- If I manually start it 'systemctl start ntp' it starts just fine and woks 
correctly,<br />
- but until I manually start it, 'systemctl status ntp' shows:<br />
- Loaded: loaded (/etc/init.d/ntp; bad; vendor preset: enabled); Active: 
inactive (deadi)
- <p>
- found bugreport on ntpd package:<br />
- https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/1577596<br />
- led to solution that involves a change to be made in file:<br />
- /etc/network/if-up.d/ntpdate<br />
+ I've installed ntp service on the clean ubuntu 16.04 server system. 
Configured it. Checked that it works, but, after reboot, it doesn't start 
automatically.
+ When I check: 'systemctl is-enabled ntp', it shows enabled.
+ If I manually start it 'systemctl start ntp' it starts just fine and woks 
correctly,
+ but until I manually start it, 'systemctl status ntp' shows:
+ 
+     Loaded: loaded (/etc/init.d/ntp; bad; vendor preset: enabled)
+     Active: inactive (deadi)
+ 
+ found bugreport on ntpd package:
+ 
+     https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/1577596
+ 
+ led to solution that involves a change to be made in file:
+ 
+     /etc/network/if-up.d/ntpdate
+ 
  of ntpdate package
- </p>
+ 
  After changing from:
- <pre>
- invoke-rc.d --quiet $service stop >/dev/null 2>&1 || true
  
-  # Avoid running more than one at a time
-  flock -n /run/lock/ntpdate /usr/sbin/ntpdate-debian -s $OPTS 2>/dev/null || :
+     invoke-rc.d --quiet $service stop >/dev/null 2>&1 || true
  
- invoke-rc.d --quiet $service start >/dev/null 2>&1 || true
- </pre>
+      # Avoid running more than one at a time
+      flock -n /run/lock/ntpdate /usr/sbin/ntpdate-debian -s $OPTS 2>/dev/null 
|| :
+ 
+     invoke-rc.d --quiet $service start >/dev/null 2>&1 || true
  
  to:
- <pre>
- systemctl --quiet stop $service.service >/dev/null 2>&1 || true
  
-  # Avoid running more than one at a time
-  flock -n /run/lock/ntpdate /usr/sbin/ntpdate-debian -s $OPTS 2>/dev/null || :
+     systemctl --quiet stop $service.service >/dev/null 2>&1 || true
  
- systemctl --quiet start $service.service >/dev/null 2>&1 || true
- </pre>
+      # Avoid running more than one at a time
+      flock -n /run/lock/ntpdate /usr/sbin/ntpdate-debian -s $OPTS 2>/dev/null 
|| :
+ 
+     systemctl --quiet start $service.service >/dev/null 2>&1 || true
+ 
  ntpd service started launching on boot.
- <p>
+ 
  System Information:
- </p>
  
- lsb_release -rd:
- <pre>
- Description:    Ubuntu 16.04 LTS
- Release:        16.04
- </pre>
- apt-cache policy ntpdate:
- <pre>
- ntpdate:
-   Установлен: 1:4.2.8p4+dfsg-3ubuntu5
-   Кандидат:   1:4.2.8p4+dfsg-3ubuntu5
-   Таблица версий:
-  *** 1:4.2.8p4+dfsg-3ubuntu5 500
-         500 http://ru.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
-         100 /var/lib/dpkg/status
- </pre>
+   lsb_release -rd:
+ 
+     Description:    Ubuntu 16.04 LTS
+     Release:        16.04
+ 
+   apt-cache policy ntpdate:
+ 
+     ntpdate:
+       Установлен: 1:4.2.8p4+dfsg-3ubuntu5
+       Кандидат:   1:4.2.8p4+dfsg-3ubuntu5
+       Таблица версий:
+      *** 1:4.2.8p4+dfsg-3ubuntu5 500
+             500 http://ru.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
+             100 /var/lib/dpkg/status

** Description changed:

  I've installed ntp service on the clean ubuntu 16.04 server system. 
Configured it. Checked that it works, but, after reboot, it doesn't start 
automatically.
  When I check: 'systemctl is-enabled ntp', it shows enabled.
  If I manually start it 'systemctl start ntp' it starts just fine and woks 
correctly,
  but until I manually start it, 'systemctl status ntp' shows:
  
-     Loaded: loaded (/etc/init.d/ntp; bad; vendor preset: enabled)
-     Active: inactive (deadi)
+     Loaded: loaded (/etc/init.d/ntp; bad; vendor preset: enabled)
+     Active: inactive (deadi)
  
  found bugreport on ntpd package:
  
-     https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/1577596
+     https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/1577596
  
  led to solution that involves a change to be made in file:
  
-     /etc/network/if-up.d/ntpdate
+     /etc/network/if-up.d/ntpdate
  
  of ntpdate package
  
  After changing from:
+ ______________CODE_START______________
  
-     invoke-rc.d --quiet $service stop >/dev/null 2>&1 || true
+     invoke-rc.d --quiet $service stop >/dev/null 2>&1 || true
  
-      # Avoid running more than one at a time
-      flock -n /run/lock/ntpdate /usr/sbin/ntpdate-debian -s $OPTS 2>/dev/null 
|| :
+      # Avoid running more than one at a time
+      flock -n /run/lock/ntpdate /usr/sbin/ntpdate-debian -s $OPTS 2>/dev/null 
|| :
  
-     invoke-rc.d --quiet $service start >/dev/null 2>&1 || true
+     invoke-rc.d --quiet $service start >/dev/null 2>&1 || true
+ 
+ ______________CODE_END______________
  
  to:
+ ______________CODE_START______________
  
-     systemctl --quiet stop $service.service >/dev/null 2>&1 || true
+     systemctl --quiet stop $service.service >/dev/null 2>&1 || true
  
-      # Avoid running more than one at a time
-      flock -n /run/lock/ntpdate /usr/sbin/ntpdate-debian -s $OPTS 2>/dev/null 
|| :
+      # Avoid running more than one at a time
+      flock -n /run/lock/ntpdate /usr/sbin/ntpdate-debian -s $OPTS 2>/dev/null 
|| :
  
-     systemctl --quiet start $service.service >/dev/null 2>&1 || true
+     systemctl --quiet start $service.service >/dev/null 2>&1 || true
+ 
+ ______________CODE_END______________
  
  ntpd service started launching on boot.
  
  System Information:
  
-   lsb_release -rd:
+   lsb_release -rd:
  
-     Description:    Ubuntu 16.04 LTS
-     Release:        16.04
+     Description:    Ubuntu 16.04 LTS
+     Release:        16.04
  
-   apt-cache policy ntpdate:
+   apt-cache policy ntpdate:
  
-     ntpdate:
-       Установлен: 1:4.2.8p4+dfsg-3ubuntu5
-       Кандидат:   1:4.2.8p4+dfsg-3ubuntu5
-       Таблица версий:
-      *** 1:4.2.8p4+dfsg-3ubuntu5 500
-             500 http://ru.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
-             100 /var/lib/dpkg/status
+     ntpdate:
+       Установлен: 1:4.2.8p4+dfsg-3ubuntu5
+       Кандидат:   1:4.2.8p4+dfsg-3ubuntu5
+       Таблица версий:
+      *** 1:4.2.8p4+dfsg-3ubuntu5 500
+             500 http://ru.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
+             100 /var/lib/dpkg/status

** Summary changed:

- ntpdate startup routine prevents ntp service from launching up on Ubuntu 
16.04 server on system boot; manually starting ntp service works
+ ntpdate startup routine prevents ntp service from launching up on Ubuntu 
16.04 server on system boot; manually starting ntp service works: [FIX in 
DESCRIPTION], just need to apply it and release a new version

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1593907

Title:
  ntpdate startup routine prevents ntp service from launching up on
  Ubuntu 16.04 server on system boot; manually starting ntp service
  works: [FIX in DESCRIPTION], just need to apply it and release a new
  version

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/1593907/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to