20 lines
413 B
Desktop File
20 lines
413 B
Desktop File
[Unit]
|
|
Description=DLB Gate Keeper Service
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=gatekeeper
|
|
Group=gpio
|
|
WorkingDirectory=/home/gatekeeper/gatekeeper
|
|
Environment="RELAY_1_PIN=22"
|
|
Environment="RELAY_2_PIN=5"
|
|
Environment="STATUS_PIN=4"
|
|
Environment="TRIGGER_DURATION=500"
|
|
ExecStart=/usr/local/bin/uvicorn main:app --host 0.0.0.0 --port 3000
|
|
Restart=always
|
|
RestartSec=3
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|