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:
parent
f5f93ae0c8
commit
4353bfb6b9
1 changed files with 1 additions and 7 deletions
|
@ -333,12 +333,6 @@ if [ -z "$VIRTUALIZATION" ]; then
|
||||||
udevadm control --exit
|
udevadm control --exit
|
||||||
fi
|
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
|
if [ -z "$VIRTUALIZATION" ]; then
|
||||||
msg "Unmounting filesystems, disabling swap..."
|
msg "Unmounting filesystems, disabling swap..."
|
||||||
swapoff -a
|
swapoff -a
|
||||||
|
@ -360,7 +354,7 @@ if [ -z "$VIRTUALIZATION" ]; then
|
||||||
fi
|
fi
|
||||||
]])
|
]])
|
||||||
|
|
||||||
add_packages({ "runit", "procps", "eudev" })
|
add_packages({ "runit", "eudev" })
|
||||||
modules.runit.add_service("getty-tty1", [[#!/bin/sh
|
modules.runit.add_service("getty-tty1", [[#!/bin/sh
|
||||||
exec chpst -P getty 38400 tty1 linux]])
|
exec chpst -P getty 38400 tty1 linux]])
|
||||||
modules.runit.add_service("getty-tty2", [[#!/bin/sh
|
modules.runit.add_service("getty-tty2", [[#!/bin/sh
|
||||||
|
|
Loading…
Reference in a new issue