You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
425 B

  1. #!/bin/sh /etc/rc.common
  2. START=99
  3. USE_PROCD=1
  4. HOME=/root
  5. MOZIOT_HOME="${HOME}/.mozilla-iot"
  6. export PATH="/opt/mozilla-iot/gateway/tools:${PATH}"
  7. start_service()
  8. {
  9. mkdir -p /usr/etc/
  10. ln -sf /etc/openzwave /usr/etc/openzwave
  11. procd_open_instance mozilla-iot-gateway
  12. procd_set_param command /usr/bin/npm start --prefix /opt/mozilla-iot/gateway
  13. procd_set_param stdout 1
  14. procd_set_param stderr 1
  15. procd_close_instance
  16. }