Re: how to handle system shutdown ?

2019-05-03 Thread Laurent Bercot
but one can do without it and call the shutdown script by hand which in the end does the reboot(2) call itself, thats perfectly possible and the classical BSD way, so process #1 does not even need to do the system shutdown itself. That's relying on a behaviour that Linux implements, and possibl

how to handle system shutdown ?

2019-05-02 Thread Jeff
> And of course you'd need a shutdown script that PID1 > can call when it gets signals to reboot or poweroff. that is also an interesting point. i personally added this to my init. it ran a sript with the received signal's name and number as parameters to let the user decide what to do about it (