summary refs log tree commit diff
path: root/etc/freebsd/3
blob: dfaa234e1e981c949d0c389a9f38866327f46aa4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
exec 2>&1

PATH=/bin:/sbin:/command

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

echo 'Shutdown...'
if test -r /etc/runit/reboot; then
  exec reboot
else
  exec halt
fi

exit 0