Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /etc/runit/ |
Upload File : |
#!/bin/sh exec 2>&1 PATH=/sbin:/usr/sbin:/bin:/usr/bin LAST=0 # While test -x is more natural, it does not consider file with # executable bit set on 'noexec' filesystem as executable, and /run # often is mounted as 'noexec'. [ $(stat -c %a /run/runit.reboot) = 100 ] && LAST=6 # used by /sbin/runlevel touch "/run/runit.runlevel.$LAST" echo 'Waiting for services to stop...' sv force-stop /etc/service/* sv exit /etc/service/* echo 'Running shutdown tasks...' /lib/runit/run_sysv_scripts "/etc/rc$LAST.d" stop