Hi!
I'm doing this for years, but I'm not sure it's 100% safe and correct:
--- /etc/runit/3 ---
# Give a chance for all processes for clean exit.
# This also will kill all 'runsvdir' and signal all 'runsv' to exit.
killall5 -15 || [ $? -eq 2 ]
sv force-stop /var/service/* &>/dev/null || :
…
# Goodbye to everybody...
killall5 -9 || [ $? -eq 2 ]
…
---
--
WBR, Alex.
Received on Wed Oct 23 2013 - 16:56:22 UTC