inital commit

This commit is contained in:
MReenen
2022-10-24 22:33:02 +02:00
commit 0df4ec2435
11 changed files with 436 additions and 0 deletions

26
relayClient.service Normal file
View File

@@ -0,0 +1,26 @@
# systemd service file to start relayClient
[Unit]
Description=MQTT client for switching relays
#After=network.target
After=mosquitto.service
[Service]
Type=simple
# Run as normal pi user - change to the user name you wish to run relayClient
User=mreenen
Group=mreenen
WorkingDirectory=/home/mreenen/relayClient
ExecStart=/home/mreenen/relayClient/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