This repository has been archived on 2025-02-14. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
pyinfra-uptime-kuma/files/uptime-kuma.service

18 lines
350 B
SYSTEMD
Raw Normal View History

2021-09-12 16:35:36 +09:00
[Unit]
Description=uptime-kuma
After=network.target
[Service]
Type=simple
DynamicUser=yes
PrivateUsers=true
StateDirectory=uptime-kuma
WorkingDirectory=/app
RootDirectory=/opt/uptime-kuma
ExecStartPre=+/bin/ln -sf /var/lib/uptime-kuma /app/data
ExecStart=/usr/local/bin/node server/server.js
Restart=on-failure
[Install]
WantedBy=multi-user.target