Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 705348

Summary: net-misc/ntpsec-1.1.8: QA Notice: systemd units using /etc/conf.d detected
Product: Gentoo Linux Reporter: crabbed halo ablution <crabbedhaloablution>
Component: Current packagesAssignee: Steve Arnold <nerdboy>
Status: RESOLVED FIXED    
Severity: normal CC: blueness
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ntpd.service.patch

Description crabbed halo ablution 2020-01-13 13:11:36 UTC
* QA Notice: systemd units using /etc/conf.d detected:
 * lib/systemd/system/ntpd.service:EnvironmentFile=-/etc/conf.d/ntp
 * See: https://wiki.gentoo.org/wiki/Project:Systemd/conf.d_files


Reproducible: Always
Comment 1 crabbed halo ablution 2020-01-13 13:17:25 UTC
Created attachment 603142 [details, diff]
ntpd.service.patch

Change the .service file to the preferred layout; good default configuration without conf.d environment variables.
Users can do:
systemctl edit ntpd.service
To override the service startup behaviour.
Also, ntpd supports --nofork and systemd maintainers prefer services to user the Type=simple startup method[1], so change that too.

[1] https://www.freedesktop.org/software/systemd/man/systemd.service.html
Comment 2 Steve Arnold archtester gentoo-dev 2020-03-13 17:08:20 UTC
systemd fix pushed with seccomp patch