Skip to content

Instantly share code, notes, and snippets.

@lbr88
Created September 25, 2017 11:26
Show Gist options
  • Save lbr88/785a344e8876b5f2a6bf57dfac2a19bb to your computer and use it in GitHub Desktop.
Save lbr88/785a344e8876b5f2a6bf57dfac2a19bb to your computer and use it in GitHub Desktop.
#/etc/systemd/system/mqtt-2-influxdb.service
[Unit]
Description=MQTT to Influxdb bridge
After=network.target
[Service]
Type=simple
User=lrasmussen
WorkingDirectory=/home/lrasmussen/mqtt-2-influxdb
ExecStart=/usr/bin/nodejs --use_strict ./app.js
Restart=on-failure
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment