[Unit] Description=Temperature Checking and Alert Bot by SKYFALL After=network.target [Service] User=ivo WorkingDirectory=/opt/skyfall/heatbot # Uncomment these for logging to flat files instead of journald #StandardOutput=file:/var/log/skyfall/heatbot/run.log #StandardError=file:/var/log/skyfall/heatbot/error.log PIDFile=/var/run/skyfall/heatbot.pid ExecStart=/usr/bin/ruby /opt/skyfall/heatbot/run.rb SuccessExitStatus=SIGKILL Restart=on-failure [Install] WantedBy=multi-user.target