Add system startup snippets
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
8
system-startup/README.md
Normal file
8
system-startup/README.md
Normal 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
|
||||||
|
|
||||||
6
system-startup/gatus.conf
Normal file
6
system-startup/gatus.conf
Normal 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
|
||||||
|
|
||||||
17
system-startup/gatus.service
Normal file
17
system-startup/gatus.service
Normal 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
4
system-startup/gatus.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
cmd: /usr/local/bin/gatus
|
||||||
|
env:
|
||||||
|
GATUS_CONFIG_PATH: "/usr/local/etc/gatus.yml"
|
||||||
|
user: gatus
|
||||||
Reference in New Issue
Block a user