runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

3 (244B)


      1 #!/bin/sh
      2 exec 2>&1
      3 
      4 PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
      5 
      6 echo 'Waiting for services to stop...'
      7 sv -w196 force-stop /service/*
      8 sv exit /service/*
      9 
     10 echo 'Shutdown...'
     11 if test -x /etc/runit/reboot; then
     12   exec reboot
     13 else
     14   exec halt
     15 fi