From 4353bfb6b9fe618a8388947555b9a993b2cf2281 Mon Sep 17 00:00:00 2001 From: Nulo Date: Fri, 17 Jun 2022 23:22:31 -0300 Subject: [PATCH] runit: Matar servicios en vez de procesos al apagar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pkill parece estar roto, tomamos la recomendación de http://smarden.org/runit/debian/3 --- modules/runit.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/modules/runit.lua b/modules/runit.lua index 0c5755b..7e423b7 100644 --- a/modules/runit.lua +++ b/modules/runit.lua @@ -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