summary refs log tree commit diff
path: root/etc/debian/3
blob: 83512a2fa8876801ab47a004212850a652a59a43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

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

echo 'Stopping getties...'
/command/svc -d /service/getty-*
/command/svwaitdown -t14 /service/getty-* || \
  ( echo 'Killing getties...' ; /command/svc -k /service/getty-* )

echo 'Stopping services...'
/command/svc -d /service/*
/command/svwaitdown -t350 /service/* || \
  ( echo 'Killing services...' ; /command/svc -k /service/* )

echo 'Stopping log services...'
/command/svc -d /service/*/log
/command/svwaitdown -t35 /service/*/log

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

exit 0