ports/sysutils/runit/files/patch-src_runit.h
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

12 lines
424 B
C

--- src/runit.h.orig 2023-06-06 12:35:21 UTC
+++ src/runit.h
@@ -1,4 +1,5 @@
-#define RUNIT "/sbin/runit"
-#define STOPIT "/etc/runit/stopit"
-#define REBOOT "/etc/runit/reboot"
-#define CTRLALTDEL "/etc/runit/ctrlaltdel"
+#define PREFIX "%%PREFIX%%"
+#define RUNIT PREFIX "/sbin/runit"
+#define STOPIT PREFIX "/etc/runit/stopit"
+#define REBOOT PREFIX "/etc/runit/reboot"
+#define CTRLALTDEL PREFIX "/etc/runit/ctrlaltdel"