[Bug 50406] Re: Two instances of ntpd are launched, only one is stopped by the init script

2016-09-09 Thread Pik Master
I observed the same bug in Centos 7, 2 instances of ntpd were created on
system boot, ie:

# ps -ef | grep ntp
ntp619 1  0 15:57 ?00:00:00 /usr/sbin/ntpd -u ntp:ntp -g
root   633   619  0 15:57 ?00:00:00 /usr/sbin/ntpd -u ntp:ntp -g

And it produced these errors in the log:
 9 Sep 15:57:23 ntpd[619]: process_private: failed auth mod_okay 0
 9 Sep 15:57:23 ntpd[633]: ntp_intres.request: permission denied


What's surprising, when you restart the service after the system has booted 
(ie. systemctl restart ntpd), the problem is gone.

I had this ntp.conf config:
restrictdefault kod nomodify notrap nopeer

So I had to add this line, and now the service starts correctly on system boot:
restrict 127.0.0.1

For IPv6 you probably need this as well:
restrict -6 default kod nomodify notrap nopeer
restrict -6 ::1

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

Title:
  Two instances of ntpd are launched, only one is stopped by the init
  script

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 50406] Re: Two instances of ntpd are launched, only one is stopped by the init script

2008-12-31 Thread Sam Morris
Seems to be fixed in hardy.

** Changed in: ntp (Ubuntu)
   Status: Confirmed = Fix Released

-- 
Two instances of ntpd are launched, only one is stopped by the init script
https://bugs.launchpad.net/bugs/50406
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 50406] Re: Two instances of ntpd are launched, only one is stopped by the init script

2008-11-08 Thread Martin Emrich
Hmm, of course the removal of the nomodify entry did not happen for me
as the package was already installed. I removed it now manually from the
localhost line, let's see if the problem disappears...

-- 
Two instances of ntpd are launched, only one is stopped by the init script
https://bugs.launchpad.net/bugs/50406
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 50406] Re: Two instances of ntpd are launched, only one is stopped by the init script

2008-09-05 Thread Martin Emrich
Today, it happened again. It looks like the second (root) ntpd process
is a child of the first. from ps auxf:

ntp   6501  0.0  0.0   4132  1268 ?Ss   06:00   0:00 /usr/sbin/ntpd 
-p /var/run/ntpd.pid -u 127:127 -g
root  6513  0.0  0.0   4124   920 ?S06:00   0:00  \_ 
/usr/sbin/ntpd -p /var/run/ntpd.pid -u 127:127 -g

** Changed in: ntp (Ubuntu)
   Status: Fix Released = Confirmed

-- 
Two instances of ntpd are launched, only one is stopped by the init script
https://bugs.launchpad.net/bugs/50406
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 50406] Re: Two instances of ntpd are launched, only one is stopped by the init script

2008-08-28 Thread Andrea Ballarati
I have this problem too with ubuntu server 2.6.20-16 with two instances of ntpd 
running the first running as ntp and the second as root.
The ntp script has seq higher than DNS script.

-- 
Two instances of ntpd are launched, only one is stopped by the init script
https://bugs.launchpad.net/bugs/50406
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 50406] Re: Two instances of ntpd are launched, only one is stopped by the init script

2008-08-22 Thread Martin Emrich
I still have this problem on hardy i386. ntpd is restarted every morning
whenn my DSL line reconnects. Then every 2-5 days, my syslog is filled
with these permission denied errors, as there are two instances of
ntpd running. I can quickly fix it by killing both instances and
restarting ntpd. I am currently running ntp 1:4.2.4p4+dfsg-3ubuntu2.

-- 
Two instances of ntpd are launched, only one is stopped by the init script
https://bugs.launchpad.net/bugs/50406
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 50406] Re: Two instances of ntpd are launched, only one is stopped by the init script

2007-07-24 Thread Steve Kowalik
This is fixed by the upload of ntp version 1:4.2.4p0+dfsg-1ubuntu1 to
Ubuntu Gutsy.

** Changed in: ntp (Ubuntu)
   Status: Confirmed = Fix Released

-- 
Two instances of ntpd are launched, only one is stopped by the init script
https://bugs.launchpad.net/bugs/50406
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 50406] Re: Two instances of ntpd are launched, only one is stopped by the init script

2007-04-28 Thread Johnathon
Confirming

** Changed in: ntp (Ubuntu)
   Status: Unconfirmed = Confirmed

-- 
Two instances of ntpd are launched, only one is stopped by the init script
https://bugs.launchpad.net/bugs/50406
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 50406] Re: Two instances of ntpd are launched, only one is stopped by the init script

2007-04-22 Thread Sam Morris
https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/92560/ is possibly a
dupe of this.

-- 
Two instances of ntpd are launched, only one is stopped by the init script
https://bugs.launchpad.net/bugs/50406
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 50406] Re: Two instances of ntpd are launched, only one is stopped by the init script

2007-04-10 Thread Bug Watch Updater
** Changed in: ntp (Debian)
   Status: Unknown = Fix Released

-- 
Two instances of ntpd are launched, only one is stopped by the init script
https://bugs.launchpad.net/bugs/50406
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 50406] Re: Two instances of ntpd are launched, only one is stopped by the init script

2007-04-09 Thread Sam Morris
Forgot to add that this was fixed in debian by changing the default ntp
configuration:

   * Don't use the nomodify option for localhost.  Modification
 is only allowed when authenticated, so having the nomodify
 option doesn't buy us anything.  It just prevents the resolver
 slave process who does authenticate itself from properly working
 (Closes: #385334, #401847)

Though I'm not sure whether this configuration allows local users to
screw with the ntp server's configuration... I find the docs for ntpd
rather confusing.

-- 
Two instances of ntpd are launched, only one is stopped by the init script
https://bugs.launchpad.net/bugs/50406
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 50406] Re: Two instances of ntpd are launched, only one is stopped by the init script

2007-04-09 Thread Sam Morris
Thanks for the info! This is now very easy to reproduce:

 1. stop ntpd
 2. comment out all nameservers in /etc/resolv.conf
 3. start ntpd
 4. there are now two ntpd processes
 5. stop ntpd
 6. there is now one ntpd process
 7. start ntpd
 8. there are now three ntpd processes

... etc.

** Changed in: ntp (Ubuntu)
   Status: Needs Info = Unconfirmed

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

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

-- 
Two instances of ntpd are launched, only one is stopped by the init script
https://bugs.launchpad.net/bugs/50406
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 50406] Re: Two instances of ntpd are launched, only one is stopped by the init script

2007-01-25 Thread Grzegorz Bieniasz
My friend noticed the same thing. I've tested it, here's result.
Kubuntu runs two instances of ntpd when /etc/init.d/ntp-server script is run on 
system startup.

[EMAIL PROTECTED]:~# date; ps aux | grep ntpd
Thu Jan 25 23:30:05 CET 2007
ntp   4851  0.0  0.3   3732  3732 ?SLs  23:23   0:00 /usr/sbin/ntpd 
-p /var/run/ntpd.pid -u 110:117
root  4880  0.0  0.1   3732  1048 ?S23:23   0:00 /usr/sbin/ntpd 
-p /var/run/ntpd.pid -u 110:117
root  5405  0.0  0.0   2812   776 pts/2S+   23:30   0:00 grep ntpd

Now lets stop it. Only one instance is stoped by the script.

[EMAIL PROTECTED]:~# date; /etc/init.d/ntp-server stop; ps aux | grep ntpd
Thu Jan 25 23:31:30 CET 2007
 * Stopping NTP server...   
 [ ok ]
root  4880  0.0  0.1   3732  1048 ?S23:23   0:00 /usr/sbin/ntpd 
-p /var/run/ntpd.pid -u 110:117
root  5431  0.0  0.0   2812   772 pts/2S+   23:31   0:00 grep ntpd


but lets wait a while, and ...
[EMAIL PROTECTED]:~# date; ps aux | grep ntpd
Thu Jan 25 23:32:11 CET 2007
root  5438  0.0  0.0   2812   768 pts/2S+   23:32   0:00 grep ntpd


Now lets start ntpd.
[EMAIL PROTECTED]:~# date; /etc/init.d/ntp-server start
Thu Jan 25 23:34:02 CET 2007
 * Starting NTP server...   
[ ok ]


Everything looks ok.
[EMAIL PROTECTED]:~# date; ps aux | grep ntpd
Thu Jan 25 23:35:22 CET 2007
ntp   5456  0.0  0.3   3708  3708 ?SLs  23:34   0:00 /usr/sbin/ntpd 
-p /var/run/ntpd.pid -u 110:117
root  5462  0.0  0.0   2808   764 pts/2S+   23:35   0:00 grep ntpd


ii  ntp4.2.0a+stable-9ubuntu2 
ii  ntp-doc4.2.0a+stable-9ubuntu2
ii  ntp-server 4.2.0a+stable-9ubuntu2  
ii  ntp-simple 4.2.0a+stable-9ubuntu2  
ii  ntpdate4.2.0a+stable-9ubuntu2   

My friend has found the solution. 
(http://thread.gmane.org/gmane.linux.debian.devel.bugs.general/202577/focus=202577)

-- 
Two instances of ntpd are launched, only one is stopped by the init script
https://launchpad.net/bugs/50406

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 50406] Re: Two instances of ntpd are launched, only one is stopped by the init script

2006-12-05 Thread chantra
is this still happening?

which ubuntu and package releases does that happen on?
I can't reproduce it on ntp-server  4.2.0a+stable-9ubuntu2.

** Changed in: ntp (Ubuntu)
   Status: Unconfirmed = Needs Info

-- 
Two instances of ntpd are launched, only one is stopped by the init script
https://launchpad.net/bugs/50406

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 50406] Re: Two instances of ntpd are launched, only one is stopped by the init script

2006-12-05 Thread Sam Morris
I think it was on dapper (1:4.2.0a+stable-8.1ubuntu6). I'm not seeing it
at the moment, however it has happened several times in the last few
months, and I have also seen it happen on Debian (http://bugs.debian.org
/cgi-bin/bugreport.cgi?bug=327138).

-- 
Two instances of ntpd are launched, only one is stopped by the init script
https://launchpad.net/bugs/50406

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs