Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#23473 - [ntp] /etc/rc.d/ntpd creates an empty PID file
Attached to Project:
Arch Linux
Opened by Anders Bergh (anders) - Monday, 28 March 2011, 08:57 GMT
Last edited by Andrea Scarpino (BaSh) - Sunday, 03 April 2011, 17:45 GMT
Opened by Anders Bergh (anders) - Monday, 28 March 2011, 08:57 GMT
Last edited by Andrea Scarpino (BaSh) - Sunday, 03 April 2011, 17:45 GMT
|
DetailsDescription:
When running '/etc/rc.d/ntpd start' it creates an empty PID file /var/run/ntpd.pid. Additional info: * package version(s) ntp 4.2.6.p3-1 One could replace the following: PID=`pidof -o %PPID /usr/bin/ntpd` echo $PID > /var/run/ntpd.pid with: PID=$! echo $PID > /var/run/ntpd.pid I tried it and it works, but I dunno if it's the best way. |
This task depends upon
Closed by Andrea Scarpino (BaSh)
Sunday, 03 April 2011, 17:45 GMT
Reason for closing: Fixed
Additional comments about closing: ntp 4.2.6.p3-3
Sunday, 03 April 2011, 17:45 GMT
Reason for closing: Fixed
Additional comments about closing: ntp 4.2.6.p3-3
[anders@onyx ~]$ ps aux | grep ntpd
anders 28770 0.0 0.1 3968 832 pts/0 S+ 19:12 0:00 grep ntpd
[anders@onyx ~]$ sudo /etc/rc.d/ntpd start
:: Starting NTP Daemon [DONE]
[anders@onyx ~]$ cat /var/run/ntpd.pid
3175
[anders@onyx ~]$ ps aux | grep 3175
anders 28792 0.0 0.1 3968 828 pts/0 S+ 19:12 0:00 grep 3175
[anders@onyx ~]$ ps aux | grep ntpd
root 28785 0.0 0.3 4648 1708 ? Ss 19:12 0:00 /usr/bin/ntpd -g
However the script needs to be improved, then I re-opened this.
My ntpd.conf:
server ntp1.x.x
server ntp2.x.x
restrict 127.0.0.1
restrict -6 ::1
driftfile /var/lib/ntp/ntp.drift
ntpd -p /var/run/ntpd.pid