Merge pull request #5917 from diizzyy/patch-2
[feed/packages.git] / lang / node-mozilla-iot-gateway / files / mozilla-iot-gateway.init
1 #!/bin/sh /etc/rc.common
2
3 START=99
4
5 _npm=/usr/bin/npm
6
7 start()
8 {
9 mkdir -p /tmp/mozilla-iot/gateway/
10 cd /opt/mozilla-iot/gateway/
11 $_npm start &> /tmp/mozilla-iot/gateway/run-app.log &
12 }