This service automatically establishes connections to any hosts that are members of the same unet network, and allows publish/subscribe exchanges via ubus channels. Signed-off-by: Felix Fietkau <nbd@nbd.name>
14 lines
227 B
Bash
Executable file
14 lines
227 B
Bash
Executable file
#!/bin/sh /etc/rc.common
|
|
# Copyright (c) 2021 OpenWrt.org
|
|
|
|
START=50
|
|
|
|
USE_PROCD=1
|
|
PROG=/usr/sbin/unetmsgd
|
|
|
|
start_service() {
|
|
procd_open_instance
|
|
procd_set_param command "$PROG"
|
|
procd_set_param respawn
|
|
procd_close_instance
|
|
}
|