File: README-systemd-user.md

package info (click to toggle)
mosquitto 2.0.22-4
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 9,572 kB
  • sloc: ansic: 51,107; python: 15,095; xml: 7,187; makefile: 1,819; cpp: 1,541; sh: 320; perl: 70
file content (24 lines) | stat: -rw-r--r-- 623 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

# Running mosquitto as a systemd user service

## Basic commands

Since 2.0.22-4 the mosquitto service packaged by Debian can be run as a user.
The service is enabled for the current user with 
```
systemctl --user enable mosquitto
```
and can then be started with 
```
systemctl --user start mosquitto
```
All other service commands can be given as expected.


## Configuration

On first startup a default configuration is created in 
`~/.config/mosquitto/mosquitto.conf`. For security reasons the created 
configuration only lets mosquitto listen on the unix domain socket
`/run/user/<uid>/mosquitto/mosquitto.socket`.