mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
Page:
Systemd Unit File
Pages
3rd Party Addons Apps
API Keys
Badge
Cloudflare Side Note
Development Side Notes
Environment Variables
Home
How to Monitor Docker Containers
Maintenance
Migration From v1 To v2
Notification Methods
OpenRC Script
Prometheus Integration
Reset Password via CLI
Reverse Proxy with Cloudflare Tunnel
Reverse Proxy
Setup Development Environment
Status Page
Systemd Unit File
Test Pull Requests
Troubleshooting
_Menu
🆙 How to Update
🔧 How to Install
No results
2
Systemd Unit File
Frank Elsinga edited this page 2023-12-03 19:14:43 +01:00
Aside from the provided pm2 instructions. You can also use systemd to enable and run Uptime-Kuma at system startup more easily.
[Unit]
Description=Uptime-Kuma - A free and open source uptime monitoring solution
Documentation=https://github.com/louislam/uptime-kuma
After=network.target
[Service]
Type=simple
User=uptime
WorkingDirectory=/home/uptime/uptime-kuma
ExecStart=/usr/bin/npm run start-server
Restart=on-failure
[Install]
WantedBy=multi-user.target
Note
This unit file assumes that you are running the software as a separate 'uptime' user. If you have node/npm installed in a different path, you will need to alter the ExecStart line to match this.
This unit file may be installed to /etc/systemd/system/uptime-kuma.service (Or whatever service name you'd prefer)
Once installed, issue the following commands to reload systemd unit files, enable it to start on boot, and start it immediately:
systemctl daemon-reload
systemctl enable --now uptime-kuma
Installation & Configuration
Features
- Reset Password via CLI
- Status Page
- Notification Methods
- Badge
- How to Monitor Docker Containers
- Maintenance
- 3rd Party Addons/Apps
- API Keys
Network
Integrations
Development & Contributions
- CONTRIBUTING Rules & Guide
- How to Translate
- Setup Development Environment
- Test Pull Requests
- Development Side Notes