24 lines
575 B
Desktop File
24 lines
575 B
Desktop File
[Unit]
|
|
Description=Frigate MQTT Counter Service
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=frigate
|
|
Group=frigate
|
|
WorkingDirectory=/etc/frigate-counter/karung-masuk
|
|
ExecStart=/usr/bin/python3 /etc/frigate-counter/karung-masuk/frigate_counter.py
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
# Environment variables for MQTT configuration
|
|
#Environment=FRIGATE_MQTT_HOST=localhost
|
|
#Environment=FRIGATE_MQTT_PORT=1883
|
|
#Environment=REPORT_MQTT_HOST=localhost
|
|
#Environment=REPORT_MQTT_PORT=1883
|
|
#Environment=TOPIC=frigate
|
|
#Environment=SITE_NAME=default
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|