|
|
@ -1,7 +1,8 @@ |
|
|
|
# --- T2-COPYRIGHT-NOTE-BEGIN --- |
|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# T2 SDE: package/.../runit/rockify.patch |
|
|
|
# Filename: package/.../runit/rockify.patch |
|
|
|
# Copyright (C) 2007 The OpenSDE Project |
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
|
|
# Copyright (C) 1998 - 2003 Clifford Wolf |
|
|
|
# |
|
|
@ -13,7 +14,7 @@ |
|
|
|
# of the GNU General Public License as published by the Free Software |
|
|
|
# Foundation; either version 2 of the License, or (at your option) any later |
|
|
|
# version. |
|
|
|
# --- T2-COPYRIGHT-NOTE-END --- |
|
|
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
we need to export vars to be read inside init.d/system |
|
|
|
currently we simulate sysv's stage 2 |
|
|
@ -60,7 +61,8 @@ currently we simulate sysv's stage 2 |
|
|
|
+test -x /etc/runit/reboot && export RUNLEVEL=6
|
|
|
|
|
|
|
|
echo 'Waiting for services to stop...' |
|
|
|
sv -w196 force-stop /var/service/* |
|
|
|
-sv -w196 force-stop /var/service/*
|
|
|
|
+sv -w15 force-stop /var/service/*
|
|
|
|
sv exit /var/service/* |
|
|
|
|
|
|
|
echo 'Shutdown...' |
|
|
|