Skip to content

Instantly share code, notes, and snippets.

@HoracioDos
Created August 13, 2020 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HoracioDos/33bc4ca0c42fd0cb4f6014a24c172203 to your computer and use it in GitHub Desktop.
Save HoracioDos/33bc4ca0c42fd0cb4f6014a24c172203 to your computer and use it in GitHub Desktop.
[Unit]
Description=Check WS3080 USB Lock
After=network.target weewx.service
[Service]
PIDFile=/run/%I.pid
WorkingDirectory=/usr/share/weewx/user
ExecStart=/usr/share/weewx/user/chkusblck
KillSignal=SIGINT
ExecReload=/bin/kill -HUP $MAINPID
ExecStop=/bin/kill -INT $MAINPID
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment