You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In systemd, I like how I can make services dependent on mounts and networking.
With rustysd, I don't want a bloated PID1 so could there be a generic system to "export service names" so separate daemons can implement the networking, device and mount management for example? Without using rsdctl start network-online.target?
The text was updated successfully, but these errors were encountered:
Hi! Depending on network and mounts is a pretty cool feature systemd has. The network thing has been a bane of linux init systems since for ever, and the systemd way isn't perfect by any means. Part of this is that it's hard to define when networking is "up".
When Network-Manager or some equivalent ist running?
When we have an IP?
When we can reach some other IP endpoint via ping?
....
I think leaving the definition of what "networking is up" means to the user of rustysd is the way to go here and the definition of a target depending on services (maybe some oneshot services checking reachability) is the way to do that.
The mounts are way more clean cut in this regard and that's why systemd has a special kind of unit for these. On the other hand the mechanisms to (efficiently) check for a mount are very much platform specific.
There isn't really a worklist, but I like the idea of experimenting with the mount units. It's fine if this starts out as a feature gated for linux users.
I'm not sure I agree that this should be moved to a separate daemon though. You get into weird territory like how systemd depends on a functioning dbus server running to work properly. I think PID1 should always be working even if no other process is currently running on the machine. In this case "just" mounts wouldn't work correctly if the daemon fails for some reason, which could be seen as acceptable, but I think just out of principle this should stay in process.
In systemd, I like how I can make services dependent on mounts and networking.
With rustysd, I don't want a bloated PID1 so could there be a generic system to "export service names" so separate daemons can implement the networking, device and mount management for example? Without using
rsdctl start network-online.target
?The text was updated successfully, but these errors were encountered: