mirror of
https://git.freebsd.org/ports.git
synced 2025-06-19 11:40:31 -04:00
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!
18 lines
427 B
Text
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
|