repo.or.cz
/
aur-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git]
/
runit
/
3
blob
0d314dbbb289adda11ec919b4c522f0ef63eb0aa
1
#!/bin/sh
2
exec
2
>&
1
3
4
PATH
=/
command
:/
sbin
:/
bin
:/
usr
/
sbin
:/
usr
/
bin
5
6
if
[
-x
/
etc
/
runit
/
reboot
]
7
then
8
export
RUNLEVEL
=
6
9
else
10
export
RUNLEVEL
=
0
11
fi
12
13
echo
'Waiting for services to stop...'
14
sv
-w196
force-stop
/
etc
/
runit
/
runsvdir
/
current
/*
15
sv
exit
/
etc
/
runit
/
runsvdir
/
current
/*
16
17
echo
'Shutdown...'
18
19
/
etc
/
rc.shutdown