Skip to content

Instantly share code, notes, and snippets.

@jmbwell
Created January 11, 2019 03:34
Show Gist options
  • Save jmbwell/efe72176b4fec2c69685a96f0ac55128 to your computer and use it in GitHub Desktop.
Save jmbwell/efe72176b4fec2c69685a96f0ac55128 to your computer and use it in GitHub Desktop.
systemd unit for starting infinitive on raspberry pi
[Unit]
Description=Infinitive
After=multi-user.target
[Service]
Type=Idle
ExecStart=/home/pi/go/src/github.com/jmbwell/infinitive/infinitive -httpport=8080 -serial=/dev/ttyUSB0
StandardOutput=null
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment