Skip to content

Commit 6cdcc01

Browse files
ericonrahesford
authored andcommitted
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.
1 parent df58001 commit 6cdcc01

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

3

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ PATH=/usr/bin:/usr/sbin
77
detect_virt
88
[ -r /etc/rc.conf ] && . /etc/rc.conf
99

10-
if [ -e /run/runit/reboot ]; then
11-
chmod 100 /run/runit/reboot
12-
fi
13-
1410
echo
1511
msg "Waiting for services to stop..."
1612
sv force-stop /var/service/*

0 commit comments

Comments
 (0)