Inital!
This commit is contained in:
11
systemd/patlite-mqtt.env.example
Normal file
11
systemd/patlite-mqtt.env.example
Normal file
@@ -0,0 +1,11 @@
|
||||
# Copy to /etc/patlite-mqtt/patlite-mqtt.env (install-systemd.sh does this on first run).
|
||||
# chmod 600 recommended if MQTT_PASSWORD is set.
|
||||
|
||||
MQTT_BROKER=localhost
|
||||
MQTT_PORT=1883
|
||||
#MQTT_USERNAME=
|
||||
#MQTT_PASSWORD=
|
||||
MQTT_PREFIX=patlite
|
||||
MQTT_CLIENT_ID=patlite-mqtt
|
||||
#FAST_FLASH_DELAY=0.25
|
||||
#SLOW_FLASH_DELAY=0.5
|
||||
22
systemd/patlite-mqtt.service.in
Normal file
22
systemd/patlite-mqtt.service.in
Normal file
@@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=Patlite signal tower MQTT daemon
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
EnvironmentFile=-/etc/patlite-mqtt/patlite-mqtt.env
|
||||
WorkingDirectory=@INSTALL_DIR@
|
||||
ExecStart=@VENV_PYTHON@ -m patlite_mqtt
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
User=@SERVICE_USER@
|
||||
Group=patlite
|
||||
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user