commit 4e7573b

uint  ·  2026-05-01 07:10:06 +0000 UTC
parents 85c5a1b, 99d6741
Merge pull request #3 from foobar-p5/master

bare minimum openrc support (service)
3 files changed,  +15, -2
+4, -1
 1@@ -52,6 +52,9 @@ install-conf:
 2 install-rcctl:
 3 	install -m 0555 scripts/openbsd-parados.sh /etc/rc.d/parados
 4 
 5+install-openrc:
 6+	install -m 0555 scripts/openrc-parados /etc/init.d/parados
 7+
 8 uninstall:
 9 	rm -f $(DESTDIR)$(BINDIR)/$(OUT)
10 	rm -f $(DESTDIR)$(MAN1DIR)/parados.1
11@@ -62,5 +65,5 @@ compile_flags:
12 	rm -f compile_flags.txt
13 	for f in ${CPPFLAGS} ${CFLAGS}; do echo $$f >> compile_flags.txt; done
14 
15-.PHONY: all release debug clean install install-conf install-rcctl uninstall compile_flags
16+.PHONY: all release debug clean install install-conf install-rcctl install-openrc uninstall compile_flags
17 
+1, -1
1@@ -13,7 +13,7 @@ make install-conf
2 
3 ### Startup Scripts
4 Parados has platform specific init scripts to launch it. As
5-of now, there is: OpenBSD(rcctl)
6+of now, there is: OpenBSD(rcctl), OpenRC(rc-service)
7 startup scripts.
8 
9 ```sh
+10, -0
 1@@ -0,0 +1,10 @@
 2+#!/sbin/openrc-run
 3+
 4+name="parados"
 5+command="/usr/local/bin/parados"
 6+command_background=true
 7+pidfile="/run/${RC_SVCNAME}.pid"
 8+
 9+depend() {
10+    need net
11+}