Files
photoBooth/systemd/jh-photomaton.service
T
admin 209f81aa3d
🚀 Deploy — JH Photomaton / 🔍 Vérification (push) Has been cancelled
🚀 Deploy — JH Photomaton / 🍓 Deploy sur le Pi (push) Has been cancelled
first commit
2026-07-16 00:55:29 +02:00

29 lines
660 B
Desktop File

[Unit]
Description=JH Photomaton — Interface de gestion (LSDW)
Documentation=https://github.com/your-repo/jh-photomaton
After=network.target photobooth-app.service
Wants=photobooth-app.service
[Service]
Type=simple
User=root
WorkingDirectory=/home/pi/jh-photomaton
ExecStart=/home/pi/jh-photomaton/.venv/bin/python main.py
Restart=always
RestartSec=5
StandardOutput=journal
StandardError=journal
SyslogIdentifier=jh-photomaton
# Donne accès à /dev/mem pour rpi_ws281x (LEDs)
# et /dev/gpiomem pour GPIO
PrivateDevices=no
SupplementaryGroups=gpio
# Limite RAM pour protéger le Pi 2Go
MemoryMax=200M
MemorySwapMax=0
[Install]
WantedBy=multi-user.target