FS#41107 - [ntp] Upgrade overwrote service file

Attached to Project: Arch Linux
Opened by IMBJR (IMBJR) - Sunday, 06 July 2014, 10:38 GMT
Last edited by Allan McRae (Allan) - Sunday, 06 July 2014, 12:47 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Upgrade of ntp package from 4.2.7.p441-1 to 4.2.7.p446-1 caused ntpd.service file to be overwritten, causing custom parameters to ntpd to be lost and re-enabling undesired IPv6 functionality.

Additional info:
* package version(s)

4.2.7.p446-1

* config and/or log files etc.

I've customised /etc/systemd/system/multi-user.target.wants/ntpd.service with the following:
ExecStart=/usr/bin/ntpd -g -4 -u ntp:ntp -p /run/ntpd.pid
This got overwritten when the package was upgraded.

Steps to reproduce:

Upgraded the package and ntpd.service was overwritten. No .pacnew file was generated.
This task depends upon

Closed by  Allan McRae (Allan)
Sunday, 06 July 2014, 12:47 GMT
Reason for closing:  Not a bug
Comment by Jens Adam (byte) - Sunday, 06 July 2014, 10:57 GMT
Did you customize /etc/systemd/system/multi-user.target.wants/ntpd.service (which is symlinked to /usr and therefore never a backup-worthy config file by Arch standards) by editing it directly?
The proper way is create /etc/systemd/system/ntpd.service and symlink that one.
Comment by IMBJR (IMBJR) - Sunday, 06 July 2014, 11:28 GMT
*facepalm*

I've even a custom service set up just as you describe. This bug can be closed.

Loading...