Use DynamicUser in systemd unit.
This commit is contained in:
parent
b3634b610e
commit
10181c60d2
@ -5,8 +5,7 @@ After=network-online.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
User=dwfiles
|
DynamicUser=yes
|
||||||
Group=dwfiles
|
|
||||||
ExecStart=/usr/bin/dwelling-files -conf /etc/dwelling/files.yaml
|
ExecStart=/usr/bin/dwelling-files -conf /etc/dwelling/files.yaml
|
||||||
|
|
||||||
ReadOnlyPaths=/
|
ReadOnlyPaths=/
|
||||||
|
Loading…
Reference in New Issue
Block a user