On Tue, Jan 07, 2020 at 02:23:10PM -0600, Douglas R. Reno via lfs-dev wrote: > > On 1/7/20 11:30 AM, Travis Davies via lfs-dev wrote: > > Hi LFS dev, > > > > I want to report that the lfs systemd 9.0 book does not mention > > the creation of systemd users: systemd-resolve, systemd-network, and > > systemd-timesync. These are required for networkd to start properly. > > > > Also, the networkd by default has no restart limit, and gets throttled > > quickly > > at boot. In my automation I've fixed this with a call to sed. > > sed -i 's/RestartSec=0/RestartSec=1/' > > /lib/systemd/system/systemd-networkd.service > > > > Cheers! > > Travis > > > Hi Travis, > > > In Chapter 6 (6.6 - Creating Essential Files and Symlinks), we add the > systemd-network, systemd-resolve, and systemd-timesync users directly into > the /etc/passwd file (the groups get put into /etc/group in the same page): > > cat > /etc/passwd << "EOF" |root:x:0:0:root:/root:/bin/bash > bin:x:1:1:bin:/dev/null:/bin/false daemon:x:6:6:Daemon > User:/dev/null:/bin/false messagebus:x:18:18:D-Bus Message Daemon > User:/var/run/dbus:/bin/false systemd-bus-proxy:x:72:72:systemd Bus > Proxy:/:/bin/false systemd-journal-gateway:x:73:73:systemd Journal > Gateway:/:/bin/false systemd-journal-remote:x:74:74:systemd Journal > Remote:/:/bin/false systemd-journal-upload:x:75:75:systemd Journal > Upload:/:/bin/false systemd-network:x:76:76:systemd Network > Management:/:/bin/false systemd-resolve:x:77:77:systemd > Resolver:/:/bin/false systemd-timesync:x:78:78:systemd Time > Synchronization:/:/bin/false systemd-coredump:x:79:79:systemd Core > Dumper:/:/bin/false nobody:x:99:99:Unprivileged User:/dev/null:/bin/false| > EOF > > Thanks for the report on the default restart limit! I'm curious though, does > this happen because you didn't have the users/groups created? I'm wondering > because I haven't seen a report about this before. I'll look at implementing > it most likely on the systemd page in LFS and BLFS if they are applicable. > > - Doug >
Hi Doug, Thanks! To answer your question, Yes, I am pretty convinced now that the throttling occured because the users were not created. ~Travis > -- > http://lists.linuxfromscratch.org/listinfo/lfs-dev > FAQ: http://www.linuxfromscratch.org/faq/ > Unsubscribe: See the above information page -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
