summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-process/runit/files/3-r2')
-rw-r--r--sys-process/runit/files/3-r215
1 files changed, 15 insertions, 0 deletions
diff --git a/sys-process/runit/files/3-r2 b/sys-process/runit/files/3-r2
new file mode 100644
index 000000000000..0b757c01fe22
--- /dev/null
+++ b/sys-process/runit/files/3-r2
@@ -0,0 +1,15 @@
+#!/bin/bash
+exec >/dev/console 2>&1
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+
+echo 'Waiting for getties to stop...'
+sv -w 10 force-shutdown /etc/service/getty-*
+
+echo 'Waiting for services to stop...'
+sv -w 300 force-shutdown /etc/service/*
+
+echo 'Shutdown...'
+
+. /etc/runit/rc.sh
+
+run_rc_stage 3