Files
packages/net/nanomq/files/nanomq.init
Andrew Yong ff71f64495 nanomq: add new package
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>
2025-11-22 14:38:29 +08:00

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
}