mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 19:14:30 +04:00
NanoMQ MQTT Broker (NanoMQ) is described by EMQX as "An ultra-lightweight and blazing-fast Messaging Broker/Bus for IoT Edge & SDV". Co-authored-by: George Sapkin <george@sapk.in> Co-authored-by: Tianling Shen <cnsztl@gmail.com> Signed-off-by: Andrew Yong <me@ndoo.sg>
18 lines
317 B
Bash
18 lines
317 B
Bash
#!/bin/sh /etc/rc.common
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Copyright (C) 2025 Andrew Yong <me@ndoo.sg>
|
|
|
|
START=95
|
|
STOP=10
|
|
|
|
USE_PROCD=1
|
|
PROG=/usr/bin/nanomq
|
|
CONFIGFILE=/etc/nanomq.conf
|
|
|
|
start_service() {
|
|
procd_open_instance
|
|
procd_set_param command "$PROG" start --conf "$CONFIGFILE"
|
|
procd_close_instance
|
|
}
|