about summary refs log tree commit diff
diff options
context:
space:
mode:
authorÉrico Rolim <erico.erc@gmail.com>2020-07-18 04:00:56 -0300
committerAndrew J. Hesford <48421688+ahesford@users.noreply.github.com>2020-07-20 06:50:33 -0400
commit6cdcc01a9ef6a8f1a770ddedf1dd887ed66da269 (patch)
tree9470466b47c8dc73fe2c1069fd02af58e997b802
parentdf580011835bff76fc0d4473f52344898abd9ef5 (diff)
downloadrunit-void-6cdcc01a9ef6a8f1a770ddedf1dd887ed66da269.tar.gz
runit-void-6cdcc01a9ef6a8f1a770ddedf1dd887ed66da269.tar.xz
runit-void-6cdcc01a9ef6a8f1a770ddedf1dd887ed66da269.zip
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.
-rwxr-xr-x34
1 files changed, 0 insertions, 4 deletions
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/*