FS#36339 - [ntp] Obsolete ControlGroup option in ntpd{,ate}.service file

Attached to Project: Arch Linux
Opened by Leonid Isaev (lisaev) - Wednesday, 31 July 2013, 03:20 GMT
Last edited by Gaetan Bisson (vesath) - Thursday, 01 August 2013, 02:22 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Gaetan Bisson (vesath)
Dave Reisner (falconindy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Since systemd 205, the ControlGroup option has been deprecated, but ntpd.service and ntpdate.service still contain "ControlGroup=cpu:/". As a result, each time those services are started, a warning is printed in the journal, e.g.

Jul 30 08:50:46 hermes systemd[1]: [/usr/lib/systemd/system/ntpd.service:9] Unknown lvalue 'ControlGroup' in section 'Service'

I assume this option was put in order to make ntpd run with real-time scheduling. I wonder whether it is still required to specify explicitly with newer kernels/systemd, and whether a similar effect can be achieved with CPUSchedulingPolicy= and CPUSchedulingPolicy=. But in any case, the ControlGroup option needs to be removed...

Thanks,
Leonid.
This task depends upon

Closed by  Gaetan Bisson (vesath)
Thursday, 01 August 2013, 02:22 GMT
Reason for closing:  Fixed
Additional comments about closing:  ntp-4.2.6.p5-16 in [testing]
Comment by Gaetan Bisson (vesath) - Wednesday, 31 July 2013, 03:44 GMT
I note that systemd-204 is the version currently in [core] and it makes no mention of any upcoming deprecation of ControlGroup... Anyway, we should be ready for when systemd-206-without-bugs reaches [core].

Dave, you added the ControlGroup entry to ntpd.service and you obviously know more about systemd than me; what's your take on this?
Comment by Dave Reisner (falconindy) - Thursday, 01 August 2013, 01:34 GMT
I think I only added this because that's what Fedora was using. May as well just ditch it.
Comment by Gaetan Bisson (vesath) - Thursday, 01 August 2013, 02:22 GMT
Sounds good.

Loading...