FS#22981 - [ntp] ntpdate script shows error on shutdown

Attached to Project: Arch Linux
Opened by Ray (ataraxia) - Sunday, 20 February 2011, 23:13 GMT
Last edited by Andrea Scarpino (BaSh) - Sunday, 03 April 2011, 17:47 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Kevin Piche (kpiche)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
After the change to the ntpdate rc.d script to use ntpd -q for FS 18469, an error is shown at shutdown time complaining that no script named /etc/rc.d/ntp-client can be found. This is partly my fault - when I submitted that patch to that other FS, I assumed the script's name would be changed to reflect its new contents. Therefore, the patch changed the add-daemon and rm-daemon calls from "ntpdate" to "ntp-client". When Kevin implemented the FS, he decided not to rename the script, but still applied the part of my patch which changed the add/rm-daemon calls.

This is basically just cosmetic, as the stop routine in this script does nothing anyway.

Additional info:
Package version: ntp 4.2.6.p3-1
Error message: /etc/rc.d/functions: line 201: /etc/rc.d/ntp-client: No such file or directory

Steps to reproduce:
Shut down or reboot a system which has started the new ntpdate script.
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Sunday, 03 April 2011, 17:47 GMT
Reason for closing:  Fixed
Additional comments about closing:  ntp 4.2.6.p3-3
Comment by Greg (dolby) - Wednesday, 09 March 2011, 10:30 GMT
Isnt this fixed in initscripts 2011.02.1? I dont get this anymore.
Comment by Ray (ataraxia) - Wednesday, 09 March 2011, 14:04 GMT
initscripts 2011.02.1 checks for the existence of /etc/rc.d/$daemon before trying to shut down anything it finds in /var/run/daemons, so it no longer tries to run this nonexistent script. However, the ntpdate initscript is still wrong. (It's just even less important now.)

Loading...