runit: Matar servicios en vez de procesos al apagar

pkill parece estar roto, tomamos la recomendación de http://smarden.org/runit/debian/3
This commit is contained in:
Cat /dev/Nulo 2022-06-17 23:22:31 -03:00
parent f5f93ae0c8
commit 4353bfb6b9

View file

@ -333,12 +333,6 @@ if [ -z "$VIRTUALIZATION" ]; then
udevadm control --exit
fi
msg "Sending TERM signal to processes..."
pkill --inverse -s0,1 -TERM
sleep 1
msg "Sending KILL signal to processes..."
pkill --inverse -s0,1 -KILL
if [ -z "$VIRTUALIZATION" ]; then
msg "Unmounting filesystems, disabling swap..."
swapoff -a
@ -360,7 +354,7 @@ if [ -z "$VIRTUALIZATION" ]; then
fi
]])
add_packages({ "runit", "procps", "eudev" })
add_packages({ "runit", "eudev" })
modules.runit.add_service("getty-tty1", [[#!/bin/sh
exec chpst -P getty 38400 tty1 linux]])
modules.runit.add_service("getty-tty2", [[#!/bin/sh