Skip to content

Commit

Permalink
3: remove /run/runit/reboot handling.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ericonr committed Jul 20, 2020
1 parent 55261a6 commit 369df48
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions 3
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down

0 comments on commit 369df48

Please sign in to comment.