Skip to content

Instantly share code, notes, and snippets.

@KunYi
Created December 16, 2020 11:21
Show Gist options
  • Select an option

  • Save KunYi/b835b4a589ae2f2ae50897184c5abf76 to your computer and use it in GitHub Desktop.

Select an option

Save KunYi/b835b4a589ae2f2ae50897184c5abf76 to your computer and use it in GitHub Desktop.
for my weather station project
[Unit]
Description=WeatherStation Mqtt bridge service
After=rc-local.service
[Service]
Type=simple
WorkingDirectory=/opt/weather
ExecStart=/opt/weather/runWeatherStation2MQTT.sh
Restart=always
RestartSec=30
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment