File: 3

package info (click to toggle)
runit-run 0.5.0
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 112 kB
  • ctags: 3
  • sloc: sh: 134; makefile: 49
file content (16 lines) | stat: -rwxr-xr-x 297 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
exec 2>&1

PATH=/sbin:/bin:/usr/sbin:/usr/bin

LAST=0
test -x /etc/runit/reboot && LAST=6

echo 'Waiting for getties to stop...'
svwaitdown -xk -t14 /var/service/getty-*

echo 'Waiting for services to stop...'
svwaitdown -xk -t350 /var/service/*

echo 'Shutdown...'
/etc/init.d/rc $LAST