mqttClient/relayClient.service
2023-03-05 17:32:32 +01:00

26 lines
473 B
Desktop File

# systemd service file to start relayClient
[Unit]
Description=MQTT client
#After=network.target
After=mosquitto.service
[Service]
Type=simple
User=<username>
Group=<username>
WorkingDirectory=/home/<username>
ExecStart=/home/<username>/.local/bin/relayClient
# Use SIGINT to stop
KillSignal=SIGINT
# Auto restart on crash
Restart=on-failure
RestartSec=20
# Tag things in the log
SyslogIdentifier=relayClient
#StandardOutput=syslog
[Install]
WantedBy=multi-user.target