4 ms·
SysV init had the ability to restart, allowing upgrades without rebooting. Can systemd do that? The mechanism was kind of interesting: SysV init would create
by burfog 7y ago
SysV init had the ability to restart, allowing upgrades without rebooting. Can systemd do that?
The mechanism was kind of interesting:
SysV init would create socketpair, then fork. The parent (with PID 1, required for correct functionality) would then exec the new SysV init binary with an option specified to make it receive state over the socket. The child would supply that state, then exit.
- acdha 7y agoYou’re looking for `daemon-reexec`: https://www.freedesktop.org/software/systemd/man/systemctl.html https://www.freedesktop.org/software/systemd/man/systemctl.h... > Reexecute the systemd manager. This will serialize the manager state, reexecute the process and deserialize the state again. This command is of little use except for debugging and package upgrades. Sometimes, it might be helpful as a heavy-weight daemon-reload. While the daemon is being reexecuted, all sockets systemd listening on behalf of user configuration will stay accessible.