From 8e144b60ffc531b427367bb2cebe7b52e74ef20b Mon Sep 17 00:00:00 2001 From: Eike Flath Date: Tue, 30 Mar 2021 18:09:33 +0200 Subject: [PATCH] Specified shutdown time (0 seconds) for openrc shutdown option (#925) If you don't specify it, it won't work: $ sudo -A openrc-shutdown -p * openrc-shutdown: No shutdown time specified --- .local/bin/sysact | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/sysact b/.local/bin/sysact index 62fdd61..5e3acf5 100755 --- a/.local/bin/sysact +++ b/.local/bin/sysact @@ -5,7 +5,7 @@ # For non-systemd init systems. case "$(readlink -f /sbin/init)" in *runit*) hib="sudo -A zzz" ;; - *openrc*) reb="sudo -A openrc-shutdown -r"; shut="sudo -A openrc-shutdown -p" ;; + *openrc*) reb="sudo -A openrc-shutdown -r"; shut="sudo -A openrc-shutdown -p 0" ;; esac cmds="\