Browse Source

* changed runit to wait only 15 seconds before killing the services on stop, not 196 o_O

git-svn-id: svn://svn.opensde.net/opensde/package/trunk@20640 10447126-35f2-4685-b0cf-6dd780d3921f
early
Alejandro Mery 18 years ago
parent
commit
88df55b2b1
  1. 10
      base/runit/rockify.patch

10
base/runit/rockify.patch

@ -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...'

Loading…
Cancel
Save