|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
|
|
|
#
|
|
|
|
|
# Filename: package/.../runit/rockify.patch
|
|
|
|
|
# Copyright (C) 2007 The OpenSDE Project
|
|
|
|
|
# Copyright (C) 2007 - 2009 The OpenSDE Project
|
|
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project
|
|
|
|
|
# Copyright (C) 1998 - 2003 Clifford Wolf
|
|
|
|
|
#
|
|
|
|
@ -45,8 +45,8 @@ currently we simulate sysv's stage 2
|
|
|
|
|
+
|
|
|
|
|
+touch /etc/runit/{stopit,reboot}
|
|
|
|
|
+chmod 0 /etc/runit/{stopit,reboot}
|
|
|
|
|
--- ./etc/debian/3.orig 2006-06-29 07:53:16.000000000 +0000
|
|
|
|
|
+++ ./etc/debian/3 2006-07-07 13:09:50.000000000 +0000
|
|
|
|
|
--- ./etc/debian/3.orig 2008-06-15 16:53:26.000000000 -0400
|
|
|
|
|
+++ ./etc/debian/3 2009-05-15 15:56:13.000000000 -0400
|
|
|
|
|
@@ -1,14 +1,18 @@
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
exec 2>&1
|
|
|
|
@ -61,9 +61,9 @@ 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 -w15 force-stop /var/service/*
|
|
|
|
|
sv exit /var/service/*
|
|
|
|
|
-sv -w196 force-stop /service/*
|
|
|
|
|
+sv -w15 force-stop /service/*
|
|
|
|
|
sv exit /service/*
|
|
|
|
|
|
|
|
|
|
echo 'Shutdown...'
|
|
|
|
|
-/etc/init.d/rc $LAST
|
|
|
|
|