Any systemd wizards?

James Browning jamesb192 at jamesb192.com
Fri Mar 28 17:18:00 UTC 2025


On Friday, March 28, 2025 4:45:24 AM Pacific Daylight Time James Browning via 
devel wrote:
> On Friday, March 28, 2025 3:11:39 AM Pacific Daylight Time Hal Murray via
> devel
> wrote:
> > I've got a fresh Fedora install.  ntpsec builds and installs, but systemd
> > doesn't like the ntpd.service that got installed.  It's the same as what
> > I'm using on other Fedora systems.
> > 
> > Has anybody seen this before?  I haven't been able to get it to tell me
> > why it doesn't like our service files.
> > 
> :::snip:::
> It's Selinux. Running "# /sbin/restorecon -v /usr/lib/systemd/system/ntp*"
> clears up the first layer of suck.
> 
> I am working on getting through the second.

It's Selinux (most of) the way down. YMWV

# restorecon ${PREFIX}/{,s}bin/ntp*
# mkdir -pv /var/log/ntpstats
# groupadd -r -g 123 ntp   
# useradd -r -u 123 -g ntp -d /dev/null -s /sbin/nologin ntp
# chown -Rv ntp:ntp /var/lib/ntp /var/log/ntpstats
# chmod -Rv ugo+rX /var/log/ntpstats





More information about the devel mailing list