debian/mosquitto.user.service
raw| 1 | [Unit] |
| 2 | Description=Mosquitto MQTT Broker for %u |
| 3 | Documentation=man:mosquitto.conf(5) man:mosquitto(8) |
| 4 | |
| 5 | [Service] |
| 6 | Type=notify |
| 7 | NotifyAccess=main |
| 8 | ExecStart=/usr/sbin/mosquitto -c %E/mosquitto/mosquitto.conf |
| 9 | ExecReload=/bin/kill -HUP $MAINPID |
| 10 | Restart=on-failure |
| 11 | ExecStartPre=/usr/share/mosquitto/user/bin/init "%E" "%t" "%S" "%L" |
| 12 | |
| 13 | # Hardening |
| 14 | SystemCallArchitectures=native |
| 15 | MemoryDenyWriteExecute=true |
| 16 | NoNewPrivileges=true |
| 17 | |
| 18 | [Install] |
| 19 | WantedBy=default.target |