summarylogtreecommitdiffstats
path: root/nanomq.service
blob: 824291dc1b2428dd5f494c24d29e2d70abe33a1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[Unit]
Description=An ultra-lightweight and blazing-fast Messaging broker/bus for IoT edge & SDV
Requires=network.target

[Service]
Type=exec
NotifyAccess=main
User=nanomq
ExecStart=/usr/bin/nanomq start --conf /etc/nanomq.conf --log_syslog=true
ExecReload=/bin/bin/nanomq reload --conf /etc/nanomq.conf
Restart=on-failure

NoNewPrivileges=yes
ProtectSystem=full
ProtectHome=true
PrivateTmp=true
PrivateDevices=true

[Install]
WantedBy=multi-user.target