runit

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

3 (240B)


      1 #!/bin/sh
      2 exec 2>&1
      3 
      4 PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
      5 
      6 LAST=0
      7 test -x /etc/runit/reboot && LAST=6
      8 
      9 echo 'Waiting for services to stop...'
     10 sv -w196 force-stop /service/*
     11 sv exit /service/*
     12 
     13 echo 'Shutdown...'
     14 /etc/init.d/rc $LAST