summary refs log tree commit diff
path: root/3
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-10-24 09:58:23 +0200
committerJuan RP <xtraeme@gmail.com>2014-10-24 09:58:23 +0200
commitb1d961cd745c2307d285681cd0ecae144f5f3baa (patch)
tree96174adbdc589cd3e5e7f0f166eee888a1e3341b /3
parent6148db4462ee5ad830f6a13d593ad56c541370f8 (diff)
downloadrunit-void-b1d961cd745c2307d285681cd0ecae144f5f3baa.tar.gz
runit-void-b1d961cd745c2307d285681cd0ecae144f5f3baa.tar.xz
runit-void-b1d961cd745c2307d285681cd0ecae144f5f3baa.zip
3: reduce time to wait while stopping services and killing processes.
Previous values were too high.
Diffstat (limited to '3')
-rwxr-xr-x35
1 files changed, 2 insertions, 3 deletions
diff --git a/3 b/3
index 98b61b7..65df780 100755
--- a/3
+++ b/3
@@ -13,7 +13,7 @@ fi
 
 echo
 msg "Waiting for services to stop...\n"
-sv -w196 force-stop /var/service/*
+sv force-stop /var/service/*
 sv exit /var/service/*
 
 msg "Saving random seed...\n"
@@ -32,7 +32,7 @@ fi
 
 msg "Sending TERM signal to processes...\n"
 pkill --inverse -s0,1 -TERM
-sleep 5
+sleep 1
 msg "Sending KILL signal to processes...\n"
 pkill --inverse -s0,1 -KILL
 
@@ -44,5 +44,4 @@ if [ -z "$VIRTUALIZATION" ]; then
     mount -o remount,ro /
 fi
 
-sleep 1
 sync