-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheink-display.service
More file actions
34 lines (30 loc) · 848 Bytes
/
Copy patheink-display.service
File metadata and controls
34 lines (30 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[Unit]
Description=E-ink Display System
After=network.target
Wants=network.target
[Service]
Type=simple
User=danrasp
Group=gpio
SupplementaryGroups=spi i2c gpio dialout
WorkingDirectory=/home/danrasp/RpiEinky
ExecStart=/home/danrasp/eink_env/bin/python /home/danrasp/RpiEinky/run_eink_system.py
ExecStop=/bin/kill -TERM $MAINPID
Restart=always
RestartSec=10
TimeoutStartSec=30
TimeoutStopSec=30
KillMode=mixed
KillSignal=SIGTERM
StandardOutput=append:/home/danrasp/RpiEinky/logs/display.log
StandardError=append:/home/danrasp/RpiEinky/logs/display.log
# Environment variables for hardware access
Environment=PYTHONPATH=/home/danrasp/RpiEinky
Environment=DISPLAY=:0
Environment=HOME=/home/danrasp
Environment=USER=danrasp
Environment=XDG_RUNTIME_DIR=/run/user/1000
# Ensure clean restarts
RemainAfterExit=no
[Install]
WantedBy=multi-user.target