From 6cdcc01a9ef6a8f1a770ddedf1dd887ed66da269 Mon Sep 17 00:00:00 2001 From: Érico Rolim Date: Sat, 18 Jul 2020 04:00:56 -0300 Subject: 3: remove /run/runit/reboot handling. runit uses the permissions in the /etc/runit/reboot file to determine whether it's going to perform a halt or reboot action. This conditional in 3 meant that touching the reboot file, even with 000 perms, would lead to a reboot, which goes agains what is expected according to the runit documentation. --- 3 | 4 ---- 1 file changed, 4 deletions(-) (limited to '3') diff --git a/3 b/3 index 7945490..4a4781e 100755 --- a/3 +++ b/3 @@ -7,10 +7,6 @@ PATH=/usr/bin:/usr/sbin detect_virt [ -r /etc/rc.conf ] && . /etc/rc.conf -if [ -e /run/runit/reboot ]; then - chmod 100 /run/runit/reboot -fi - echo msg "Waiting for services to stop..." sv force-stop /var/service/* -- cgit 1.4.1