summarylogtreecommitdiffstats
path: root/rumqtt.service
blob: c7bd2ff18c104f0af0dfce3a8356d664c7c6b856 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[Unit]
Description=rumqttd mqtt broker deamon
Documentation=https://github.com/bytebeamio/rumqtt
After=network.target

[Service]
User=rumqtt
Group=rumqtt
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
ProtectKernelTunables=true
ProtectHostname=true
ProtectClock=true
ProtectControlGroups=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
NoNewPrivileges=true
PrivateDevices=true
DeviceAllow=/dev/syslog
RestrictSUIDSGID=true
ProtectKernelModules=true
MemoryDenyWriteExecute=true
RestrictNamespaces=true
RestrictRealtime=true
LockPersonality=true
TimeoutStopSec=7s
KillMode=mixed
KillSignal=SIGTERM
UMask=0027
LimitNOFILE=131072
LimitNPROC=512
Restart=on-failure
RestartPreventExitStatus=2
ExecStart=/usr/bin/rumqttd --config /etc/rumqtt/config.toml

[Install]
WantedBy=multi-user.target