Add system startup snippets

Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
2025-12-27 19:01:36 -03:00
parent 3d4f07ad38
commit 5e79d781fe
4 changed files with 35 additions and 0 deletions

8
system-startup/README.md Normal file
View File

@@ -0,0 +1,8 @@
# Description
Supervisor-specific snippets for launching Gatus at system startup
## Currently supported
* [Immortal](https://immortal.run)
* [Mokou](https://svn2.nishi.boats/svn/mokou)
* systemd

View File

@@ -0,0 +1,6 @@
# Configuration file snippet for mokou(8)
# Requires daemonize(1)
description=Developer-oriented health dashboard
exec=/usr/bin/daemonize -p /var/run/gatus.pid -u gatus -E GATUS_CONFIG_PATH=/usr/local/etc/gatus.yml /usr/local/bin/gatus
pidfile=/var/run/gatus.pid

View File

@@ -0,0 +1,17 @@
[Unit]
Description=Developer-oriented health dashboard
Documentation=https://gatus.io
After=network-online.target
After=postgresql.service
[Service]
Type=simple
User=gatus
Group=gatus
WorkingDirectory=/etc/gatus
Restart=on-failure
ExecStart=/usr/local/bin/gatus
Environment=GATUS_CONFIG_PATH=/usr/local/etc/gatus.yml
[Install]
WantedBy=multi-user.target

4
system-startup/gatus.yml Normal file
View File

@@ -0,0 +1,4 @@
cmd: /usr/local/bin/gatus
env:
GATUS_CONFIG_PATH: "/usr/local/etc/gatus.yml"
user: gatus