first commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# =============================================================================
|
||||
# photobooth-watchdog.service - Surveillance de sante du photomaton
|
||||
# =============================================================================
|
||||
# Installation:
|
||||
# sudo cp photobooth-watchdog.service /etc/systemd/system/
|
||||
# sudo cp photobooth-watchdog.timer /etc/systemd/system/
|
||||
# sudo systemctl daemon-reload
|
||||
# sudo systemctl enable photobooth-watchdog.timer
|
||||
# sudo systemctl start photobooth-watchdog.timer
|
||||
# =============================================================================
|
||||
|
||||
[Unit]
|
||||
Description=Photomaton Health Check Watchdog
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/home/pi/photomaton/scripts/health-check.sh
|
||||
# Adapter le chemin ci-dessus selon votre installation
|
||||
# ExecStart=/home/VOTRE_USER/opencode/perso/photomaton/scripts/health-check.sh
|
||||
|
||||
# Timeout: le check ne devrait pas prendre plus de 60 secondes
|
||||
TimeoutStartSec=60
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user