Re: runit proper shutdown

From: Alex Efros <powerman_at_powerman.name>
Date: Wed, 23 Oct 2013 19:56:22 +0300

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

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:18 UTC