projects
/
arvados.git
/ blob
525b96bbb667564ecf7f2eef66d37009796a7406
[arvados.git]
/
tools
/
arvbox
/
lib
/
arvbox
/
docker
/
runit
/
3
1
#!/bin/sh
2
exec 2>&1
3
4
PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
5
6
LAST=0
7
test -x /run/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