mdns-repeater: add respawn to init
authorTina DiPierro <[email protected]>
Mon, 16 Sep 2024 04:32:55 +0000 (08:32 +0400)
committerTianling Shen <[email protected]>
Mon, 16 Sep 2024 06:01:00 +0000 (14:01 +0800)
Sometimes mdns-repeater quits or crashes, leaving service stopped. This commit should fix that by enabling respawn in procd.

Signed-off-by: Tina DiPierro <[email protected]>
net/mdns-repeater/Makefile
net/mdns-repeater/files/mdns-repeater.init

index 6f9c2055e386d4e3f9ea07e78992558bf8b1bdd4..4546bedd1dde2477499a2543ae55e13a68356159 100644 (file)
@@ -6,7 +6,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mdns-repeater
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_URL:=https://github.com/kennylevinsen/mdns-repeater.git
 PKG_SOURCE_PROTO=git
index 1814d25ab3e3358fbdba122c8c7ce169e9b954f4..1726ee512076b84f14dfafdf078a292ade79be9b 100755 (executable)
@@ -11,6 +11,7 @@ start_service() {
        local interfaces
        config_get interfaces main interface
        procd_open_instance
+       procd_set_param respawn
        procd_set_param command $PROG -f $interfaces
        # -f generates a lot of debug output
        # no forwarding of stderr to logs