From 5e79d781fe27a1037d6fe98570726f78708868d9 Mon Sep 17 00:00:00 2001 From: Shin'ya Minazuki Date: Sat, 27 Dec 2025 19:01:36 -0300 Subject: [PATCH] Add system startup snippets Signed-off-by: Shin'ya Minazuki --- system-startup/README.md | 8 ++++++++ system-startup/gatus.conf | 6 ++++++ system-startup/gatus.service | 17 +++++++++++++++++ system-startup/gatus.yml | 4 ++++ 4 files changed, 35 insertions(+) create mode 100644 system-startup/README.md create mode 100644 system-startup/gatus.conf create mode 100644 system-startup/gatus.service create mode 100644 system-startup/gatus.yml diff --git a/system-startup/README.md b/system-startup/README.md new file mode 100644 index 00000000..381628de --- /dev/null +++ b/system-startup/README.md @@ -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 + diff --git a/system-startup/gatus.conf b/system-startup/gatus.conf new file mode 100644 index 00000000..010fcf59 --- /dev/null +++ b/system-startup/gatus.conf @@ -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 + diff --git a/system-startup/gatus.service b/system-startup/gatus.service new file mode 100644 index 00000000..64058d57 --- /dev/null +++ b/system-startup/gatus.service @@ -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 diff --git a/system-startup/gatus.yml b/system-startup/gatus.yml new file mode 100644 index 00000000..132a59d0 --- /dev/null +++ b/system-startup/gatus.yml @@ -0,0 +1,4 @@ +cmd: /usr/local/bin/gatus +env: + GATUS_CONFIG_PATH: "/usr/local/etc/gatus.yml" +user: gatus