ports/sysutils/runit/files/patch-etc_freebsd_3
Chris Rees a3a0138c36 sysutils/runit: Fix shutdown and reboot
The FreeBSD PREFIX insistence plays havoc with runit, but this
should fix the issues on rebooting and shutting down when using
runit-init.

The problem was because of the inconsistency of where stopit and
reboot are stored.

While here, pet rclint and identify bug in rclint at the same time!
2023-09-17 07:50:43 +01:00

18 lines
427 B
Text

--- etc/freebsd/3.orig 2023-06-06 12:50:59 UTC
+++ etc/freebsd/3
@@ -1,7 +1,7 @@
#!/bin/sh
exec 2>&1
-PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
+PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/sbin:%%PREFIX%%/bin
echo 'Waiting for services to stop...'
sv -w196 force-stop /service/*
@@ -11,5 +11,5 @@ echo 'Shutdown...'
if test -x /etc/runit/reboot; then
exec reboot
else
- exec halt
+ exec halt -p
fi