[Touch-packages] [Bug 1206164] Re: /etc/network/if-up.d/ntpdate does not detach correctly

2018-09-19 Thread Bug Watch Updater
** Changed in: ntp (Debian)
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ntp in Ubuntu.
https://bugs.launchpad.net/bugs/1206164

Title:
  /etc/network/if-up.d/ntpdate does not detach correctly

Status in ntp package in Ubuntu:
  Won't Fix
Status in ntp package in Debian:
  Fix Released

Bug description:
  It seems that the intent of /etc/network/if-up.d/ntpdate is to
  background itself, as it creates a subshell with &.

  As reported in bug 1202758, this doesn't seem to work correctly.  That
  doesn't close the file descriptors.  As a result, if something is
  waiting on the output of 'ifup', it will sit and wait until ntpdate is
  finished.

  Example:
  $ time sudo sh -c 'o=$(sh -c "ifdown eth0 ; ifup eth0" 2>&1) ; echo $o'

  If we change the way it detaches itself to close stdout, stdderr, and
  stdin, then we're fine.

  I'm reporting this, but I'm not sure how much of a real problem it is.  As if 
th
  e command sends stdin and stdout to /dev/null, then debugging its output 
would b
  e more difficult.

  Example diff:
  $ diff -u /etc/network/if-up.d/ntpdate.dist /etc/network/if-up.d/ntpdate
  --- /etc/network/if-up.d/ntpdate.dist  2013-07-29 15:47:54.242781947 +
  +++ /etc/network/if-up.d/ntpdate 2013-07-29 15:48:06.946781947 +
  @@ -56,4 +56,4 @@
 lockfile-remove $LOCKFILE
   fi

  -) &
  +) /dev/null 2>&1 &

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: ntpdate 1:4.2.6.p5+dfsg-2ubuntu2
  ProcVersionSignature: User Name 3.10.0-5.15-generic 3.10.2
  Uname: Linux 3.10.0-5-generic x86_64
  ApportVersion: 2.11-0ubuntu1
  Architecture: amd64
  Date: Mon Jul 29 15:32:30 2013
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: ntp
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.network.if.up.d.ntpdate: 2013-07-29T15:32:03.567775

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1206164] Re: /etc/network/if-up.d/ntpdate does not detach correctly

2016-09-20 Thread Bug Watch Updater
** Changed in: ntp (Debian)
   Status: Unknown => New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ntp in Ubuntu.
https://bugs.launchpad.net/bugs/1206164

Title:
  /etc/network/if-up.d/ntpdate does not detach correctly

Status in ntp package in Ubuntu:
  Won't Fix
Status in ntp package in Debian:
  New

Bug description:
  It seems that the intent of /etc/network/if-up.d/ntpdate is to
  background itself, as it creates a subshell with &.

  As reported in bug 1202758, this doesn't seem to work correctly.  That
  doesn't close the file descriptors.  As a result, if something is
  waiting on the output of 'ifup', it will sit and wait until ntpdate is
  finished.

  Example:
  $ time sudo sh -c 'o=$(sh -c "ifdown eth0 ; ifup eth0" 2>&1) ; echo $o'

  If we change the way it detaches itself to close stdout, stdderr, and
  stdin, then we're fine.

  I'm reporting this, but I'm not sure how much of a real problem it is.  As if 
th
  e command sends stdin and stdout to /dev/null, then debugging its output 
would b
  e more difficult.

  Example diff:
  $ diff -u /etc/network/if-up.d/ntpdate.dist /etc/network/if-up.d/ntpdate
  --- /etc/network/if-up.d/ntpdate.dist  2013-07-29 15:47:54.242781947 +
  +++ /etc/network/if-up.d/ntpdate 2013-07-29 15:48:06.946781947 +
  @@ -56,4 +56,4 @@
 lockfile-remove $LOCKFILE
   fi

  -) &
  +) /dev/null 2>&1 &

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: ntpdate 1:4.2.6.p5+dfsg-2ubuntu2
  ProcVersionSignature: User Name 3.10.0-5.15-generic 3.10.2
  Uname: Linux 3.10.0-5-generic x86_64
  ApportVersion: 2.11-0ubuntu1
  Architecture: amd64
  Date: Mon Jul 29 15:32:30 2013
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: ntp
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.network.if.up.d.ntpdate: 2013-07-29T15:32:03.567775

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1206164] Re: /etc/network/if-up.d/ntpdate does not detach correctly

2016-09-20 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: ubuntu
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ntp in Ubuntu.
https://bugs.launchpad.net/bugs/1206164

Title:
  /etc/network/if-up.d/ntpdate does not detach correctly

Status in ntp package in Ubuntu:
  Won't Fix
Status in ntp package in Debian:
  Unknown

Bug description:
  It seems that the intent of /etc/network/if-up.d/ntpdate is to
  background itself, as it creates a subshell with &.

  As reported in bug 1202758, this doesn't seem to work correctly.  That
  doesn't close the file descriptors.  As a result, if something is
  waiting on the output of 'ifup', it will sit and wait until ntpdate is
  finished.

  Example:
  $ time sudo sh -c 'o=$(sh -c "ifdown eth0 ; ifup eth0" 2>&1) ; echo $o'

  If we change the way it detaches itself to close stdout, stdderr, and
  stdin, then we're fine.

  I'm reporting this, but I'm not sure how much of a real problem it is.  As if 
th
  e command sends stdin and stdout to /dev/null, then debugging its output 
would b
  e more difficult.

  Example diff:
  $ diff -u /etc/network/if-up.d/ntpdate.dist /etc/network/if-up.d/ntpdate
  --- /etc/network/if-up.d/ntpdate.dist  2013-07-29 15:47:54.242781947 +
  +++ /etc/network/if-up.d/ntpdate 2013-07-29 15:48:06.946781947 +
  @@ -56,4 +56,4 @@
 lockfile-remove $LOCKFILE
   fi

  -) &
  +) /dev/null 2>&1 &

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: ntpdate 1:4.2.6.p5+dfsg-2ubuntu2
  ProcVersionSignature: User Name 3.10.0-5.15-generic 3.10.2
  Uname: Linux 3.10.0-5-generic x86_64
  ApportVersion: 2.11-0ubuntu1
  Architecture: amd64
  Date: Mon Jul 29 15:32:30 2013
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: ntp
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.network.if.up.d.ntpdate: 2013-07-29T15:32:03.567775

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1206164] Re: /etc/network/if-up.d/ntpdate does not detach correctly

2016-09-20 Thread Mathew Hodson
** Project changed: ntp => ubuntu

** Changed in: ubuntu
   Importance: Unknown => Undecided

** Changed in: ubuntu
 Remote watch: Debian Bug tracker #823533 => None

** No longer affects: ubuntu

** Also affects: ntp (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823533
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ntp in Ubuntu.
https://bugs.launchpad.net/bugs/1206164

Title:
  /etc/network/if-up.d/ntpdate does not detach correctly

Status in ntp package in Ubuntu:
  Won't Fix
Status in ntp package in Debian:
  Unknown

Bug description:
  It seems that the intent of /etc/network/if-up.d/ntpdate is to
  background itself, as it creates a subshell with &.

  As reported in bug 1202758, this doesn't seem to work correctly.  That
  doesn't close the file descriptors.  As a result, if something is
  waiting on the output of 'ifup', it will sit and wait until ntpdate is
  finished.

  Example:
  $ time sudo sh -c 'o=$(sh -c "ifdown eth0 ; ifup eth0" 2>&1) ; echo $o'

  If we change the way it detaches itself to close stdout, stdderr, and
  stdin, then we're fine.

  I'm reporting this, but I'm not sure how much of a real problem it is.  As if 
th
  e command sends stdin and stdout to /dev/null, then debugging its output 
would b
  e more difficult.

  Example diff:
  $ diff -u /etc/network/if-up.d/ntpdate.dist /etc/network/if-up.d/ntpdate
  --- /etc/network/if-up.d/ntpdate.dist  2013-07-29 15:47:54.242781947 +
  +++ /etc/network/if-up.d/ntpdate 2013-07-29 15:48:06.946781947 +
  @@ -56,4 +56,4 @@
 lockfile-remove $LOCKFILE
   fi

  -) &
  +) /dev/null 2>&1 &

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: ntpdate 1:4.2.6.p5+dfsg-2ubuntu2
  ProcVersionSignature: User Name 3.10.0-5.15-generic 3.10.2
  Uname: Linux 3.10.0-5-generic x86_64
  ApportVersion: 2.11-0ubuntu1
  Architecture: amd64
  Date: Mon Jul 29 15:32:30 2013
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: ntp
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.network.if.up.d.ntpdate: 2013-07-29T15:32:03.567775

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1206164] Re: /etc/network/if-up.d/ntpdate does not detach correctly

2016-08-31 Thread ChristianEhrhardt
In reference to [1] the TL;DR summary is that:
1. ntpdate is deprecated
2. the patches got polished, tested and provided to Debian but not yet picked up
3. we are unwilling to add more delta to Debian for a deprecated binary
#. so if they are merged in Debian we will pick it up in the next Release, but 
unlikely do an SRU for it.

Great and more detailed summary including potential workarounds for old issues 
can be read at:
[1]: https://lists.ubuntu.com/archives/ubuntu-devel/2016-August/039484.html

** Changed in: ntp (Ubuntu)
   Status: Triaged => Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ntp in Ubuntu.
https://bugs.launchpad.net/bugs/1206164

Title:
  /etc/network/if-up.d/ntpdate does not detach correctly

Status in NTP:
  New
Status in ntp package in Ubuntu:
  Won't Fix

Bug description:
  It seems that the intent of /etc/network/if-up.d/ntpdate is to
  background itself, as it creates a subshell with &.

  As reported in bug 1202758, this doesn't seem to work correctly.  That
  doesn't close the file descriptors.  As a result, if something is
  waiting on the output of 'ifup', it will sit and wait until ntpdate is
  finished.

  Example:
  $ time sudo sh -c 'o=$(sh -c "ifdown eth0 ; ifup eth0" 2>&1) ; echo $o'

  If we change the way it detaches itself to close stdout, stdderr, and
  stdin, then we're fine.

  I'm reporting this, but I'm not sure how much of a real problem it is.  As if 
th
  e command sends stdin and stdout to /dev/null, then debugging its output 
would b
  e more difficult.

  Example diff:
  $ diff -u /etc/network/if-up.d/ntpdate.dist /etc/network/if-up.d/ntpdate
  --- /etc/network/if-up.d/ntpdate.dist  2013-07-29 15:47:54.242781947 +
  +++ /etc/network/if-up.d/ntpdate 2013-07-29 15:48:06.946781947 +
  @@ -56,4 +56,4 @@
 lockfile-remove $LOCKFILE
   fi

  -) &
  +) /dev/null 2>&1 &

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: ntpdate 1:4.2.6.p5+dfsg-2ubuntu2
  ProcVersionSignature: User Name 3.10.0-5.15-generic 3.10.2
  Uname: Linux 3.10.0-5-generic x86_64
  ApportVersion: 2.11-0ubuntu1
  Architecture: amd64
  Date: Mon Jul 29 15:32:30 2013
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: ntp
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.network.if.up.d.ntpdate: 2013-07-29T15:32:03.567775

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1206164] Re: /etc/network/if-up.d/ntpdate does not detach correctly

2016-07-05 Thread ChristianEhrhardt
** Changed in: ntp (Ubuntu)
 Assignee: (unassigned) => ChristianEhrhardt (paelzer)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ntp in Ubuntu.
https://bugs.launchpad.net/bugs/1206164

Title:
  /etc/network/if-up.d/ntpdate does not detach correctly

Status in NTP:
  New
Status in ntp package in Ubuntu:
  Triaged

Bug description:
  It seems that the intent of /etc/network/if-up.d/ntpdate is to
  background itself, as it creates a subshell with &.

  As reported in bug 1202758, this doesn't seem to work correctly.  That
  doesn't close the file descriptors.  As a result, if something is
  waiting on the output of 'ifup', it will sit and wait until ntpdate is
  finished.

  Example:
  $ time sudo sh -c 'o=$(sh -c "ifdown eth0 ; ifup eth0" 2>&1) ; echo $o'

  If we change the way it detaches itself to close stdout, stdderr, and
  stdin, then we're fine.

  I'm reporting this, but I'm not sure how much of a real problem it is.  As if 
th
  e command sends stdin and stdout to /dev/null, then debugging its output 
would b
  e more difficult.

  Example diff:
  $ diff -u /etc/network/if-up.d/ntpdate.dist /etc/network/if-up.d/ntpdate
  --- /etc/network/if-up.d/ntpdate.dist  2013-07-29 15:47:54.242781947 +
  +++ /etc/network/if-up.d/ntpdate 2013-07-29 15:48:06.946781947 +
  @@ -56,4 +56,4 @@
 lockfile-remove $LOCKFILE
   fi

  -) &
  +) /dev/null 2>&1 &

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: ntpdate 1:4.2.6.p5+dfsg-2ubuntu2
  ProcVersionSignature: User Name 3.10.0-5.15-generic 3.10.2
  Uname: Linux 3.10.0-5-generic x86_64
  ApportVersion: 2.11-0ubuntu1
  Architecture: amd64
  Date: Mon Jul 29 15:32:30 2013
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: ntp
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.network.if.up.d.ntpdate: 2013-07-29T15:32:03.567775

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1206164] Re: /etc/network/if-up.d/ntpdate does not detach correctly

2016-07-05 Thread ChristianEhrhardt
Testing has shown that an environment var there isn't working well as call -> 
ifup -> hook isn't transferring env.
But checking for alternatives this got even better.

ifup makes all options in e/n/i or ifup -o available (prepended and uppercased) 
to called scripts.
That way one can not only disable per call, but also per device in e/n/i.

So the behavior will be like:   
 
 1. default it is running on ifup (old default) 
  
 2. one can set a global disable in the config file 
  
 3. one disable per device in the devices e/n/i stanza via disable_ntpdate=1
   
 4. one can disable it per call via -o option setting -o disable_ntpdate=1

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ntp in Ubuntu.
https://bugs.launchpad.net/bugs/1206164

Title:
  /etc/network/if-up.d/ntpdate does not detach correctly

Status in NTP:
  New
Status in ntp package in Ubuntu:
  Triaged

Bug description:
  It seems that the intent of /etc/network/if-up.d/ntpdate is to
  background itself, as it creates a subshell with &.

  As reported in bug 1202758, this doesn't seem to work correctly.  That
  doesn't close the file descriptors.  As a result, if something is
  waiting on the output of 'ifup', it will sit and wait until ntpdate is
  finished.

  Example:
  $ time sudo sh -c 'o=$(sh -c "ifdown eth0 ; ifup eth0" 2>&1) ; echo $o'

  If we change the way it detaches itself to close stdout, stdderr, and
  stdin, then we're fine.

  I'm reporting this, but I'm not sure how much of a real problem it is.  As if 
th
  e command sends stdin and stdout to /dev/null, then debugging its output 
would b
  e more difficult.

  Example diff:
  $ diff -u /etc/network/if-up.d/ntpdate.dist /etc/network/if-up.d/ntpdate
  --- /etc/network/if-up.d/ntpdate.dist  2013-07-29 15:47:54.242781947 +
  +++ /etc/network/if-up.d/ntpdate 2013-07-29 15:48:06.946781947 +
  @@ -56,4 +56,4 @@
 lockfile-remove $LOCKFILE
   fi

  -) &
  +) /dev/null 2>&1 &

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: ntpdate 1:4.2.6.p5+dfsg-2ubuntu2
  ProcVersionSignature: User Name 3.10.0-5.15-generic 3.10.2
  Uname: Linux 3.10.0-5-generic x86_64
  ApportVersion: 2.11-0ubuntu1
  Architecture: amd64
  Date: Mon Jul 29 15:32:30 2013
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: ntp
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.network.if.up.d.ntpdate: 2013-07-29T15:32:03.567775

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1206164] Re: /etc/network/if-up.d/ntpdate does not detach correctly

2016-05-05 Thread Bug Watch Updater
** Changed in: ntp
   Status: Unknown => New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ntp in Ubuntu.
https://bugs.launchpad.net/bugs/1206164

Title:
  /etc/network/if-up.d/ntpdate does not detach correctly

Status in NTP:
  New
Status in ntp package in Ubuntu:
  Triaged

Bug description:
  It seems that the intent of /etc/network/if-up.d/ntpdate is to
  background itself, as it creates a subshell with &.

  As reported in bug 1202758, this doesn't seem to work correctly.  That
  doesn't close the file descriptors.  As a result, if something is
  waiting on the output of 'ifup', it will sit and wait until ntpdate is
  finished.

  Example:
  $ time sudo sh -c 'o=$(sh -c "ifdown eth0 ; ifup eth0" 2>&1) ; echo $o'

  If we change the way it detaches itself to close stdout, stdderr, and
  stdin, then we're fine.

  I'm reporting this, but I'm not sure how much of a real problem it is.  As if 
th
  e command sends stdin and stdout to /dev/null, then debugging its output 
would b
  e more difficult.

  Example diff:
  $ diff -u /etc/network/if-up.d/ntpdate.dist /etc/network/if-up.d/ntpdate
  --- /etc/network/if-up.d/ntpdate.dist  2013-07-29 15:47:54.242781947 +
  +++ /etc/network/if-up.d/ntpdate 2013-07-29 15:48:06.946781947 +
  @@ -56,4 +56,4 @@
 lockfile-remove $LOCKFILE
   fi

  -) &
  +) /dev/null 2>&1 &

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: ntpdate 1:4.2.6.p5+dfsg-2ubuntu2
  ProcVersionSignature: User Name 3.10.0-5.15-generic 3.10.2
  Uname: Linux 3.10.0-5-generic x86_64
  ApportVersion: 2.11-0ubuntu1
  Architecture: amd64
  Date: Mon Jul 29 15:32:30 2013
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: ntp
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.network.if.up.d.ntpdate: 2013-07-29T15:32:03.567775

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1206164] Re: /etc/network/if-up.d/ntpdate does not detach correctly

2016-05-05 Thread ChristianEhrhardt
added the Debian bug I reported the patch

** Bug watch added: Debian Bug tracker #823533
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823533

** Also affects: ntp via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823533
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ntp in Ubuntu.
https://bugs.launchpad.net/bugs/1206164

Title:
  /etc/network/if-up.d/ntpdate does not detach correctly

Status in NTP:
  Unknown
Status in ntp package in Ubuntu:
  Triaged

Bug description:
  It seems that the intent of /etc/network/if-up.d/ntpdate is to
  background itself, as it creates a subshell with &.

  As reported in bug 1202758, this doesn't seem to work correctly.  That
  doesn't close the file descriptors.  As a result, if something is
  waiting on the output of 'ifup', it will sit and wait until ntpdate is
  finished.

  Example:
  $ time sudo sh -c 'o=$(sh -c "ifdown eth0 ; ifup eth0" 2>&1) ; echo $o'

  If we change the way it detaches itself to close stdout, stdderr, and
  stdin, then we're fine.

  I'm reporting this, but I'm not sure how much of a real problem it is.  As if 
th
  e command sends stdin and stdout to /dev/null, then debugging its output 
would b
  e more difficult.

  Example diff:
  $ diff -u /etc/network/if-up.d/ntpdate.dist /etc/network/if-up.d/ntpdate
  --- /etc/network/if-up.d/ntpdate.dist  2013-07-29 15:47:54.242781947 +
  +++ /etc/network/if-up.d/ntpdate 2013-07-29 15:48:06.946781947 +
  @@ -56,4 +56,4 @@
 lockfile-remove $LOCKFILE
   fi

  -) &
  +) /dev/null 2>&1 &

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: ntpdate 1:4.2.6.p5+dfsg-2ubuntu2
  ProcVersionSignature: User Name 3.10.0-5.15-generic 3.10.2
  Uname: Linux 3.10.0-5-generic x86_64
  ApportVersion: 2.11-0ubuntu1
  Architecture: amd64
  Date: Mon Jul 29 15:32:30 2013
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: ntp
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.network.if.up.d.ntpdate: 2013-07-29T15:32:03.567775

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1206164] Re: /etc/network/if-up.d/ntpdate does not detach correctly

2016-05-05 Thread ChristianEhrhardt
While these days the systemd based timesync* things are doing most of
the work there is still a lot of buzz around the automated ntpdate on
ifup. I'll try to to summarize the outcome of multiple discussions and
bugs around this and propose a solution.

- I've seen various reports of ntpdate syncing too much or time changes due to 
that annoying people.
- but then there are different user scenarios so some want and others won't 
"autoupdate" feature on ifup
- the ones that want it disabled are usually only "inconvenience issues" like 
too much calls, but also cases like "know it will hang", so could I disable it 
in advance
- the ones require the updates are mostly having more severe issues (like 
breaking authentication due to time being off afterwards)

We should try to create a solution for both parties to be able to config the 
system to their way.
So lets keep the default to sync (as it seems the more critical way), but 
provide a way to disable it via the config files.

Doing it via an environment variable also allows to "overwrite" it in ifup 
calls like
  DISABLE_NTPDATE=1 ifup eth0

The config file has to be read in ntpdate-debian if the variable is not
set.

Then just a simple check for that variable in the script to exit if disabled:
[ "${DISABLE_NTPDATE:-0}" != "0" ] && exit 0

So the behavior would be like:
1. default it is running on ifup
2. one could set a different default in the config file
3. one can overwrite whatever was set via an environment variable

... creating a patch for that and providing to Debian for a latter sync.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ntp in Ubuntu.
https://bugs.launchpad.net/bugs/1206164

Title:
  /etc/network/if-up.d/ntpdate does not detach correctly

Status in ntp package in Ubuntu:
  Triaged

Bug description:
  It seems that the intent of /etc/network/if-up.d/ntpdate is to
  background itself, as it creates a subshell with &.

  As reported in bug 1202758, this doesn't seem to work correctly.  That
  doesn't close the file descriptors.  As a result, if something is
  waiting on the output of 'ifup', it will sit and wait until ntpdate is
  finished.

  Example:
  $ time sudo sh -c 'o=$(sh -c "ifdown eth0 ; ifup eth0" 2>&1) ; echo $o'

  If we change the way it detaches itself to close stdout, stdderr, and
  stdin, then we're fine.

  I'm reporting this, but I'm not sure how much of a real problem it is.  As if 
th
  e command sends stdin and stdout to /dev/null, then debugging its output 
would b
  e more difficult.

  Example diff:
  $ diff -u /etc/network/if-up.d/ntpdate.dist /etc/network/if-up.d/ntpdate
  --- /etc/network/if-up.d/ntpdate.dist  2013-07-29 15:47:54.242781947 +
  +++ /etc/network/if-up.d/ntpdate 2013-07-29 15:48:06.946781947 +
  @@ -56,4 +56,4 @@
 lockfile-remove $LOCKFILE
   fi

  -) &
  +) /dev/null 2>&1 &

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: ntpdate 1:4.2.6.p5+dfsg-2ubuntu2
  ProcVersionSignature: User Name 3.10.0-5.15-generic 3.10.2
  Uname: Linux 3.10.0-5-generic x86_64
  ApportVersion: 2.11-0ubuntu1
  Architecture: amd64
  Date: Mon Jul 29 15:32:30 2013
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: ntp
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.network.if.up.d.ntpdate: 2013-07-29T15:32:03.567775

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1206164] Re: /etc/network/if-up.d/ntpdate does not detach correctly

2016-05-01 Thread ChristianEhrhardt
Passing more bugs that I closed as dup, the general argument seems to be that 
these days in no way a server should:
1. not step time after boot (adressed in 75347)
2. not ntpupdate (by default) on every ifup especially with so much virtual 
interfaces

I'll try to suggest Scotts patch in a default-disabled version to Debian
and see what the discussion turns up.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ntp in Ubuntu.
https://bugs.launchpad.net/bugs/1206164

Title:
  /etc/network/if-up.d/ntpdate does not detach correctly

Status in ntp package in Ubuntu:
  Triaged

Bug description:
  It seems that the intent of /etc/network/if-up.d/ntpdate is to
  background itself, as it creates a subshell with &.

  As reported in bug 1202758, this doesn't seem to work correctly.  That
  doesn't close the file descriptors.  As a result, if something is
  waiting on the output of 'ifup', it will sit and wait until ntpdate is
  finished.

  Example:
  $ time sudo sh -c 'o=$(sh -c "ifdown eth0 ; ifup eth0" 2>&1) ; echo $o'

  If we change the way it detaches itself to close stdout, stdderr, and
  stdin, then we're fine.

  I'm reporting this, but I'm not sure how much of a real problem it is.  As if 
th
  e command sends stdin and stdout to /dev/null, then debugging its output 
would b
  e more difficult.

  Example diff:
  $ diff -u /etc/network/if-up.d/ntpdate.dist /etc/network/if-up.d/ntpdate
  --- /etc/network/if-up.d/ntpdate.dist  2013-07-29 15:47:54.242781947 +
  +++ /etc/network/if-up.d/ntpdate 2013-07-29 15:48:06.946781947 +
  @@ -56,4 +56,4 @@
 lockfile-remove $LOCKFILE
   fi

  -) &
  +) /dev/null 2>&1 &

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: ntpdate 1:4.2.6.p5+dfsg-2ubuntu2
  ProcVersionSignature: User Name 3.10.0-5.15-generic 3.10.2
  Uname: Linux 3.10.0-5-generic x86_64
  ApportVersion: 2.11-0ubuntu1
  Architecture: amd64
  Date: Mon Jul 29 15:32:30 2013
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: ntp
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.network.if.up.d.ntpdate: 2013-07-29T15:32:03.567775

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1206164] Re: /etc/network/if-up.d/ntpdate does not detach correctly

2016-04-30 Thread ChristianEhrhardt
I found another bgu I marked as dup, this had another two dup.
So I think it is more of a request than I thought.

Raisng prio again.
IMHO we should even consider disabling it by default.

** Changed in: ntp (Ubuntu)
   Importance: Low => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ntp in Ubuntu.
https://bugs.launchpad.net/bugs/1206164

Title:
  /etc/network/if-up.d/ntpdate does not detach correctly

Status in ntp package in Ubuntu:
  Triaged

Bug description:
  It seems that the intent of /etc/network/if-up.d/ntpdate is to
  background itself, as it creates a subshell with &.

  As reported in bug 1202758, this doesn't seem to work correctly.  That
  doesn't close the file descriptors.  As a result, if something is
  waiting on the output of 'ifup', it will sit and wait until ntpdate is
  finished.

  Example:
  $ time sudo sh -c 'o=$(sh -c "ifdown eth0 ; ifup eth0" 2>&1) ; echo $o'

  If we change the way it detaches itself to close stdout, stdderr, and
  stdin, then we're fine.

  I'm reporting this, but I'm not sure how much of a real problem it is.  As if 
th
  e command sends stdin and stdout to /dev/null, then debugging its output 
would b
  e more difficult.

  Example diff:
  $ diff -u /etc/network/if-up.d/ntpdate.dist /etc/network/if-up.d/ntpdate
  --- /etc/network/if-up.d/ntpdate.dist  2013-07-29 15:47:54.242781947 +
  +++ /etc/network/if-up.d/ntpdate 2013-07-29 15:48:06.946781947 +
  @@ -56,4 +56,4 @@
 lockfile-remove $LOCKFILE
   fi

  -) &
  +) /dev/null 2>&1 &

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: ntpdate 1:4.2.6.p5+dfsg-2ubuntu2
  ProcVersionSignature: User Name 3.10.0-5.15-generic 3.10.2
  Uname: Linux 3.10.0-5-generic x86_64
  ApportVersion: 2.11-0ubuntu1
  Architecture: amd64
  Date: Mon Jul 29 15:32:30 2013
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: ntp
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.network.if.up.d.ntpdate: 2013-07-29T15:32:03.567775

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1206164] Re: /etc/network/if-up.d/ntpdate does not detach correctly

2016-04-29 Thread ChristianEhrhardt
Since no more installed by default - lowering prio thou

** Changed in: ntp (Ubuntu)
   Importance: Medium => Low

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ntp in Ubuntu.
https://bugs.launchpad.net/bugs/1206164

Title:
  /etc/network/if-up.d/ntpdate does not detach correctly

Status in ntp package in Ubuntu:
  Triaged

Bug description:
  It seems that the intent of /etc/network/if-up.d/ntpdate is to
  background itself, as it creates a subshell with &.

  As reported in bug 1202758, this doesn't seem to work correctly.  That
  doesn't close the file descriptors.  As a result, if something is
  waiting on the output of 'ifup', it will sit and wait until ntpdate is
  finished.

  Example:
  $ time sudo sh -c 'o=$(sh -c "ifdown eth0 ; ifup eth0" 2>&1) ; echo $o'

  If we change the way it detaches itself to close stdout, stdderr, and
  stdin, then we're fine.

  I'm reporting this, but I'm not sure how much of a real problem it is.  As if 
th
  e command sends stdin and stdout to /dev/null, then debugging its output 
would b
  e more difficult.

  Example diff:
  $ diff -u /etc/network/if-up.d/ntpdate.dist /etc/network/if-up.d/ntpdate
  --- /etc/network/if-up.d/ntpdate.dist  2013-07-29 15:47:54.242781947 +
  +++ /etc/network/if-up.d/ntpdate 2013-07-29 15:48:06.946781947 +
  @@ -56,4 +56,4 @@
 lockfile-remove $LOCKFILE
   fi

  -) &
  +) /dev/null 2>&1 &

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: ntpdate 1:4.2.6.p5+dfsg-2ubuntu2
  ProcVersionSignature: User Name 3.10.0-5.15-generic 3.10.2
  Uname: Linux 3.10.0-5-generic x86_64
  ApportVersion: 2.11-0ubuntu1
  Architecture: amd64
  Date: Mon Jul 29 15:32:30 2013
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: ntp
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.network.if.up.d.ntpdate: 2013-07-29T15:32:03.567775

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1206164] Re: /etc/network/if-up.d/ntpdate does not detach correctly

2016-04-29 Thread ChristianEhrhardt
I know it's a long time, but I'm cleaning up old NTP bugs atm.

Your latter suggestion is actually only a small fix and we have all we
need - so setting triaged.

Probably not worth to work on it on its own - but it could be nicely done along 
a potential upload to bug 75347.
Therefore subscribing the Team to take a deeper look at it.


** Changed in: ntp (Ubuntu)
   Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ntp in Ubuntu.
https://bugs.launchpad.net/bugs/1206164

Title:
  /etc/network/if-up.d/ntpdate does not detach correctly

Status in ntp package in Ubuntu:
  Triaged

Bug description:
  It seems that the intent of /etc/network/if-up.d/ntpdate is to
  background itself, as it creates a subshell with &.

  As reported in bug 1202758, this doesn't seem to work correctly.  That
  doesn't close the file descriptors.  As a result, if something is
  waiting on the output of 'ifup', it will sit and wait until ntpdate is
  finished.

  Example:
  $ time sudo sh -c 'o=$(sh -c "ifdown eth0 ; ifup eth0" 2>&1) ; echo $o'

  If we change the way it detaches itself to close stdout, stdderr, and
  stdin, then we're fine.

  I'm reporting this, but I'm not sure how much of a real problem it is.  As if 
th
  e command sends stdin and stdout to /dev/null, then debugging its output 
would b
  e more difficult.

  Example diff:
  $ diff -u /etc/network/if-up.d/ntpdate.dist /etc/network/if-up.d/ntpdate
  --- /etc/network/if-up.d/ntpdate.dist  2013-07-29 15:47:54.242781947 +
  +++ /etc/network/if-up.d/ntpdate 2013-07-29 15:48:06.946781947 +
  @@ -56,4 +56,4 @@
 lockfile-remove $LOCKFILE
   fi

  -) &
  +) /dev/null 2>&1 &

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: ntpdate 1:4.2.6.p5+dfsg-2ubuntu2
  ProcVersionSignature: User Name 3.10.0-5.15-generic 3.10.2
  Uname: Linux 3.10.0-5-generic x86_64
  ApportVersion: 2.11-0ubuntu1
  Architecture: amd64
  Date: Mon Jul 29 15:32:30 2013
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: ntp
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.network.if.up.d.ntpdate: 2013-07-29T15:32:03.567775

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp