clusev/docker/restart-sentinel/clusev-restart.path

25 lines
906 B
SYSTEMD

# Clusev restart-sentinel — path unit (HOST-side).
#
# Watches for the restart sentinel the dashboard writes and triggers
# clusev-restart.service the moment it appears. Install both this unit and
# clusev-restart.service into /etc/systemd/system/, then:
#
# systemctl daemon-reload
# systemctl enable --now clusev-restart.path
#
# Adjust PathExists= below if your project lives somewhere other than
# /home/nexxo/clusev (it must match the ./run bind mount in docker-compose.prod.yml).
[Unit]
Description=Clusev restart sentinel — watch for a dashboard restart request
After=docker.service
Wants=docker.service
[Path]
# Fires the .service whenever this file exists. systemd re-arms after the service
# runs; the service deletes the sentinel, so each request triggers exactly once.
PathExists=/home/nexxo/clusev/run/restart.request
Unit=clusev-restart.service
[Install]
WantedBy=multi-user.target