The answers are there, you just don't want to admit they are right answers...
The answers are there, you just don't want to admit they are right answers...
Posted May 31, 2010 23:34 UTC (Mon) by nix (subscriber, #2304)In reply to: The answers are there, you just don't want to admit they are right answers... by paulj
Parent article: The road forward for systemd
'System time may now be considered stable' I have no idea how you could handle. Lennart?
Posted Jun 1, 2010 1:21 UTC (Tue)
by paulj (subscriber, #341)
[Link] (3 responses)
E.g. the printer example Lennart gives, and says "printer plugged in" can be depended on. But what if I want to depend on the type of printer? That's treading into udev below and DBus services above, depending on exactly what I want to do. Or "network available" - but what if I want to depend on a certain kind of network interface? Or a certain location (e.g. "start the automounter, for corporate NFS if ...")? Lots of the information you might use there is being maintained by NetworkManager (using DBus to publish that info).
Basically, if we add systemd to the mix, we're going to have udev, then systemd, then DBus + {various DBus services: NetworkManager, ModemManager, gdm, polkitd, bluez, etc}. Do we really need that extra layer of management? And many services modified for systemd would have to bind into a DBus(-like)? layer anyway, to handle in-lifetime events.
Posted Jun 1, 2010 11:56 UTC (Tue)
by mezcalero (subscriber, #45103)
[Link] (2 responses)
People should handle "in-lifetime" events (as you call them) with the native notification logic available. no need to involve systemd, or dbus or anything.
Posted Jun 1, 2010 13:33 UTC (Tue)
by dlang (guest, #313)
[Link]
on some systems I use the -G option, on others I use ntpdate.
Posted Jun 2, 2010 6:33 UTC (Wed)
by paulj (subscriber, #341)
[Link]
What exactly is the "native notification logic"? (Note that many events are application layer).
Also, I'm not saying systemd needs eventing logic. I'm asking whether it makes sense to try solve these problems in a init process, external to applications. (for value of apps that includes those that would be started by it).
In short I'm asking whether actually its user-space that needs fixing to cope with differences in and changes to environmental state? Because it seems that doing that correctly would allow a not-too-fancy init to fire off apps in parallel and not worry about dependencies, as you argue systemd should be able to do with good apps. It seems applications will have to be modified to do this anyway, to get best effect from systemd.
Posted Jun 1, 2010 11:47 UTC (Tue)
by mezcalero (subscriber, #45103)
[Link] (2 responses)
Posted Jun 2, 2010 7:38 UTC (Wed)
by Darkmere (subscriber, #53695)
[Link] (1 responses)
After network is established, time is then fast-forwarded to "real" time via ntpdate.
This means you have 2 distinct time-jumps. The first one is to avoid the annoyingly bad fsck times when a filesystem is 480+ days out of fsck ( right.) the second one _has_ to run before dovecot, which will detect time warp and decide "Life is bad, hardware broken, we die now" and block. ( doesn't properly shut down, just stops working properly )
So, yes. A few services, mostly mailservices, and some other ones do not like it when time changes too much. ntp itself _requires_ ntpdate early on, or it will simply decide that the time is too much out of sync to even bother adjusting it. And with large timedrifts, ntp isn't fun anyhow.
So, You may consider those services that require proper timekeeping to be broken ( perhaps they are ) but they are common and have to be managed with. And it's easier to deal with that than to deal with other situations.
Posted Jun 9, 2010 12:37 UTC (Wed)
by hackerb9 (guest, #21928)
[Link]
I realize I'm going far off-topic by not contributing to the init flame war and instead giving a small helpful hint. Please forgive me. Don't jump your clock just to avoid fsck. If you're going to skip regular fscks anyway, you can use ObligatoryFlameContribution: "NO! If you had read my blog post you'd realize you are ALL wrong! Using Makefiles for RC dependency is the one true way!
The answers are there, you just don't want to admit they are right answers...
The answers are there, you just don't want to admit they are right answers...
The answers are there, you just don't want to admit they are right answers...
The answers are there, you just don't want to admit they are right answers...
The answers are there, you just don't want to admit they are right answers...
The answers are there, you just don't want to admit they are right answers...
Annoying time based fsck
This means you have 2 distinct time-jumps. The first one is to avoid the annoyingly bad fsck times when a filesystem is 480+ days out of fsck ( right.)
tune2fs -i 0 /dev/sdaX
to disable the time based fsck.