Blob Blame History Raw
[Unit]
Description=Mozilla IoT Gateway Client
After=network.target
OnFailure=mozilla-iot-gateway.update-rollback.service

[Service]
Type=simple
StandardOutput=journal
StandardError=journal
# Edit this line, if needed, to specify what user to run Vaani as
# If you delete this line, it will run as root
User=moz-iot-gateway
# Edit this line, if needed, to specify where you installed the server
WorkingDirectory=/usr/lib/node_modules/gateway
# Edit this line, if needed, to set the correct path to node
ExecStart=node build/gateway.js
Restart=always
RestartSec=10s

[Install]
WantedBy=multi-user.target