diff options
author | Érico Rolim <erico.erc@gmail.com> | 2020-07-18 04:00:56 -0300 |
---|---|---|
committer | Andrew J. Hesford <48421688+ahesford@users.noreply.github.com> | 2020-07-20 06:50:33 -0400 |
commit | 6cdcc01a9ef6a8f1a770ddedf1dd887ed66da269 (patch) | |
tree | 9470466b47c8dc73fe2c1069fd02af58e997b802 | |
parent | df580011835bff76fc0d4473f52344898abd9ef5 (diff) | |
download | runit-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-x | 3 | 4 |
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/* |