first commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
[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
|
||||
Reference in New Issue
Block a user