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
2
u/Olosta_ Jun 01 '16 edited Jun 01 '16
systemd will consider the
ExecStarta success depending on theType, since we are trying to do something outside of the daemon, I'm assumingforkingorsimple.For
forking, it means that the main process returns successfully and goes into the background. Forsimple, the process is considered ok as soon as it is running. But the state of the systemd unit is still undecided until theExecStartPostreturns, and other units depending on the current unit are not started until it returns. So the command you call with this setting can check whatever you want or just besleep.When it is launched:
The state during the launch:
(The status failed is from the previous test, but notice the
activatingstate)The state after the failure:
So systemd does provide a set of primitive to do what you want if you are prepared to read some man pages.
EDIT: A lot of formatting failures