aboutsummaryrefslogtreecommitdiff
path: root/rc.shutdown
diff options
context:
space:
mode:
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-xrc.shutdown9
1 files changed, 6 insertions, 3 deletions
diff --git a/rc.shutdown b/rc.shutdown
index 2266f21..e2ea347 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -13,11 +13,14 @@ command -v sv >/dev/null &&
sv exit /var/service/* >/dev/null
}
-
-out "Saving random seed..."; {
- dd count=1 bs=512 if=/dev/random of=/var/random.seed
+command -v svctl >/dev/null &&
+ out "Waiting for sysmgr services to stop..."; {
+ svctl kill /var/sysmgr/* 2>/dev/null
}
+# Save random seed
+random save
+
out "Sending TERM signal to all processes..."; {
killall5 -TERM
sleep 1