We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 661ab4c commit 59f426aCopy full SHA for 59f426a
startup/openwrt/mqtt-executor
@@ -0,0 +1,14 @@
1
+#!/bin/sh /etc/rc.common
2
+# Example script
3
+# Copyright (C) 2007 OpenWrt.org
4
+
5
+START=99
6
+STOP=15
7
8
+start() {
9
+ /path/to/mqtt-executor -broker tcp://<mqtt-broker>:1883 -config /path/to/config.json
10
+}
11
12
+stop() {
13
+ killall mqtt-executor
14
startup/systemd/mqtt-executor.service
+[Unit]
+Description=MQTTExecutor
+After=network.target
+[Service]
+User=<user>
+Type=simple
+ExecStart=/path/to/mqtt-executor -broker tcp://<mqtt-broker>:1883 -config /path/to/config.json
+StartLimitBurst=60
+StartLimitIntervalSec=3
+Restart=on-failure
+[Install]
+WantedBy=multi-user.target
0 commit comments