troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
621 stars 61 forks source link

/sbin/shutdown force after timeout option? #295

Closed hongkongkiwi closed 1 year ago

hongkongkiwi commented 2 years ago

Is it possible to pass a timeout via the /sbin/shutdown command so that finit will force a shutdown if shutdown has not been completed in a certain time?

/sbin/shutdown --reboot --force-after-timeout-ms 5000

So this would attempt a normal shutdown and if the whole process hasn't completed after 5000ms then it will just immediately take action.

This means no matter what we are guaranteed to reboot after a timeframe.

troglobit commented 2 years ago

Interesting, yes it's possible! I'll have a look at it :)

troglobit commented 1 year ago

Just merged my patch queue today, a new timeout option is available to reboot/shutdown/poweroff. If you have the time, please tell me what you think :)