Skip to content

Commit

Permalink
3: add pre-shutdown hook
Browse files Browse the repository at this point in the history
workaround void-linux#16
  • Loading branch information
svenper authored Aug 31, 2020
1 parent 8ab6d40 commit 9999454
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 3
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ detect_virt
[ -r /etc/rc.conf ] && . /etc/rc.conf

echo
[ -x /etc/rc.pre-shutdown ] && msg "Starting pre-shutdown hook" && /etc/rc.pre-shutdown
msg "Waiting for services to stop..."
sv force-stop /var/service/*
sv exit /var/service/*
Expand Down

0 comments on commit 9999454

Please sign in to comment.