Skip to content

Instantly share code, notes, and snippets.

@melissacoleman
Created November 3, 2017 12:33
Show Gist options
  • Save melissacoleman/9f2047530d3aa2447a7d33681e5e79ff to your computer and use it in GitHub Desktop.
Save melissacoleman/9f2047530d3aa2447a7d33681e5e79ff to your computer and use it in GitHub Desktop.
iotproduct.service
[Unit]
Description=run iotproduct service and redirect stderr and stdout to a log file
After=multi-user.target
[Service]
Type=idle
ExecStart=/home/pi/iotproduct.sh > /home/pi/iotproduct.log 2>&1
User=pi
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment