fix: /run/gatus is created by systemd service on every boot
This commit is contained in:
parent
69f4a3198a
commit
fee593840e
3 changed files with 3 additions and 3 deletions
2
debian/gatus/DEBIAN/postinst
vendored
2
debian/gatus/DEBIAN/postinst
vendored
|
|
@ -1,6 +1,4 @@
|
|||
adduser --group --system gatus
|
||||
mkdir -p /var/lib/gatus
|
||||
chown -R gatus: /var/lib/gatus
|
||||
mkdir -p /var/run/gatus
|
||||
chown -R gatus: /var/run/gatus
|
||||
systemctl daemon-reload
|
||||
2
debian/gatus/etc/gatus/gatus.yaml
vendored
2
debian/gatus/etc/gatus/gatus.yaml
vendored
|
|
@ -1,6 +1,6 @@
|
|||
use-privileged-ping: true
|
||||
web:
|
||||
socket: /var/run/gatus/gatus.sock
|
||||
socket: /run/gatus/gatus.sock
|
||||
storage:
|
||||
type: "sqlite"
|
||||
path: "/var/lib/gatus/gatus.sqlite"
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ Requires=network-online.target
|
|||
Type=exec
|
||||
User=gatus
|
||||
Group=gatus
|
||||
RuntimeDirectory="gatus"
|
||||
RuntimeDirectoryMode=0770
|
||||
Environment=GATUS_CONFIG_PATH=/etc/gatus/gatus.yaml
|
||||
ExecStart=/usr/local/bin/gatus
|
||||
TimeoutStopSec=5s
|
||||
|
|
|
|||
Loading…
Reference in a new issue