rc.shutdown (578B)
1 #!/bin/sh 2 # EXAMPLE CONFIGURATION 3 # rc.shutdown: run by origo before sync+reboot/poweroff. 4 # origo already handles: 5 # 1. stopping serva (which stops all supervised services) 6 # 2. killing all remaining processes 7 # 3. remounting root read-only 8 # 4. syncing filesystems 9 # 10 # Put things here that should clean up BEFORE the kill, e.g.: 11 # - unmount network filesystems 12 # - bring down network interfaces 13 # 14 15 # deactivate network 16 #ip link set eth0 down 17 #ip link set lo down 18 19 # unmount network fs 20 #umount /mnt/nfs 21 22 # unmount everything (except root) 23 #umount -a -r