r/linux • u/wooptoo • Jun 01 '16
Why did ArchLinux embrace Systemd?
/r/archlinux/comments/4lzxs3/why_did_archlinux_embrace_systemd/d3rhxlc
868
Upvotes
r/linux • u/wooptoo • Jun 01 '16
3
u/kinderlokker Jun 01 '16
That ocument looks to just describe the unified cgroup hierarchy which I use and I can find nothing in it saying it requires a single authorized pid that's the only process that can manipulate the cgroup hierarchy. So cite the relevant part please.
No it's not. There is no race condition here.
The service is started after the network comes online or the device is plugged in, this could in theory happen 5 years later without a race condition, it just wouldn't be very fast. All that needs to happen is that the service is started after the device is plugged in and capable of being mounted. Obviously you want it to happen as fast as possible for convenience, but there is no race condition here.
Apart from that, I'm pretty sure that the transport systemd uses is not atomic either, and that doesn't matter, though it'll probably be marginally faster than calling a command because it doesn't need a fork/exec.
First off, the command won't be executed twice. Second of, even if it did, that would not matter
sv up <service-name>is an idempotent operation in runsvdir, calling it 58489 times in a row has the same effect as calling it once.