4 ms·
What does it do?
by 0xfedbee 3y ago
What does it do?
- Sayrus 3y agoIt does an immediate shutdown, this may result in data-loss. > If --force is specified twice, the operation is immediately executed without terminating any processes or unmounting any file systems. This may result in data loss. Note that when --force is specified twice the halt operation is executed by systemctl itself, and the system manager is not contacted. This means the command should succeed even when the system manager has crashed.
- retrocryptid 3y agoso it's like `kill -HUP 1` then?
- rbanffy 3y agoWouldn’t HUP require PID 1 to be able to process signals?
- retrocryptid 3y agoI think init still can receive signals. The only kernel ju-ju linux adds is it only delivers the signal if init has installed a handler (SIG_DFL behavior isn't triggered.)
- toast0 3y agoI don't know what systemd does with HUP, but traditional inits respond to HUP by reparsing their configs, not rebooting.
- retrocryptid 3y agoIn the old days, init would respond to a HUP by restarting... sort of a "warm boot." Pretty sure SunOS 4.1 did this, but ultrix certainly did. SVR 4 and Solaris changed the behaviour to just reading /etc/inittab.