FS#27728 - [ntp] update /etc/rc.d/ntpd to use /run/ntpd.pid instead of /var/run/ntpd/ntpd.pid

Attached to Project: Arch Linux
Opened by Jonathan Frazier (wide-eye) - Monday, 26 December 2011, 23:35 GMT
Last edited by Gaetan Bisson (vesath) - Tuesday, 27 December 2011, 02:25 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Gaetan Bisson (vesath)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
with the recent symlink of /var/run to /run there is no point to keeping files in /var/run.
with ntpd.pid the only file in /var/run/ntpd that can be moved to just /run/ntpd.pid and remove the extra directory.

i have done the above along with a stale pid file handling suggested by falconindy and put them in my github account.

https://github.com/JohnFrazier/arch-tmpfiles.d/tree/973adedd9aee6487c7b767aad1f296091576d82c/extra/ntp

moving the pid prevents the new rc.d script from stopping the old ntpd process, I put a msg in the install file which needs some adjustment to use as the upgrade test isn't ideal. or leave it out.
This task depends upon

Closed by  Gaetan Bisson (vesath)
Tuesday, 27 December 2011, 02:25 GMT
Reason for closing:  Implemented
Additional comments about closing:  ntp-4.2.6.p5-2 in [testing]
Comment by Jonathan Frazier (wide-eye) - Monday, 26 December 2011, 23:53 GMT
I reverted a change to the pkgbuild so that is not really changed. attached is the suggested update in diff form.
Comment by Gaetan Bisson (vesath) - Tuesday, 27 December 2011, 02:24 GMT
Thanks a lot for this; I have updated ntp accordingly and put a new package in [testing]; it will stay there for a few days just to make sure I didn't miss anything.

Loading...