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