Fix systemd unit file
This commit is contained in:
parent
c88833ecbe
commit
92371fd869
1 changed files with 2 additions and 2 deletions
|
@ -5,11 +5,11 @@ After=network.target
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
DynamicUser=yes
|
DynamicUser=yes
|
||||||
PrivateUsers=true
|
|
||||||
StateDirectory=uptime-kuma
|
StateDirectory=uptime-kuma
|
||||||
WorkingDirectory=/app
|
WorkingDirectory=/app
|
||||||
RootDirectory=/opt/uptime-kuma
|
RootDirectory=/opt/uptime-kuma
|
||||||
ExecStartPre=+/bin/ln -sf /var/lib/uptime-kuma /app/data
|
ReadWritePaths=+/app
|
||||||
|
ExecStartPre=!/bin/ln -sf /var/lib/uptime-kuma /app/data
|
||||||
ExecStart=/usr/local/bin/node server/server.js
|
ExecStart=/usr/local/bin/node server/server.js
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
|
|
Reference in a new issue