mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 23:34:31 +04:00
mdns-repeater: add respawn to init
Sometimes mdns-repeater quits or crashes, leaving service stopped. This commit should fix that by enabling respawn in procd. Signed-off-by: Tina DiPierro <tina@dipier.ro>
This commit is contained in:
committed by
Tianling Shen
parent
5542a1011c
commit
c703510a3c
@@ -6,7 +6,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=mdns-repeater
|
PKG_NAME:=mdns-repeater
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE_URL:=https://github.com/kennylevinsen/mdns-repeater.git
|
PKG_SOURCE_URL:=https://github.com/kennylevinsen/mdns-repeater.git
|
||||||
PKG_SOURCE_PROTO=git
|
PKG_SOURCE_PROTO=git
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ start_service() {
|
|||||||
local interfaces
|
local interfaces
|
||||||
config_get interfaces main interface
|
config_get interfaces main interface
|
||||||
procd_open_instance
|
procd_open_instance
|
||||||
|
procd_set_param respawn
|
||||||
procd_set_param command $PROG -f $interfaces
|
procd_set_param command $PROG -f $interfaces
|
||||||
# -f generates a lot of debug output
|
# -f generates a lot of debug output
|
||||||
# no forwarding of stderr to logs
|
# no forwarding of stderr to logs
|
||||||
|
|||||||
Reference in New Issue
Block a user