Re: Shutdown/reboot script order?

2015-06-10 Thread Steve Litt
On Tue, 09 Jun 2015 18:08:08 +0200 Laurent Bercot ska-supervis...@skarnet.org wrote: On 09/06/2015 16:24, Steve Litt wrote: * killall5 -15; sleep 2; killall5 -9; sleep 2 * umount -a * mount -o remount,ro /dev/sda1 * /sbin/halt or /sbin/reboot Could somebody confirm which order

Shutdown/reboot script order?

2015-06-09 Thread Steve Litt
Hi all, I know the last part of system shutdown or reboot, after I've killed my daemontools-supervised processes, has the following features: * killall5 -15; sleep 2; killall5 -9; sleep 2 * umount -a * mount -o remount,ro /dev/sda1 * /sbin/halt or /sbin/reboot Could somebody confirm which

Re: Shutdown/reboot script order?

2015-06-09 Thread post-sysv
This is indeed the generally correct order, though I think it's a bit too primitive for real-world shutdown on more dynamic systems, particularly desktops. It's good practice to touch /etc/nologin or /run/nologin, sync the dirty buffers to disk, turn off swap, detach loopback and volumes