TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    startup service for openwrt

    Raspberry Pi
    1
    1
    147
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      eromano
      last edited by

      Good evening,
      wiht this command I'm able to start triggercmd agent:

      node /gitrepo/TRIGGERcmd-Agent/src/daemon.js --run /root/.TRIGGERcmdData
      

      so I have created "triggercmdservice", putted it into /etc/init.d folder and assigned excute rights.
      The code for the service is:

      #!/bin/sh /etc/rc.common
      
      START=95
      start_service() {
      node /gitrepo/TRIGGERcmd-Agent/src/daemon.js --run /root/.TRIGGERcmdData
      
      }
      

      but seems to not working. Only If I execute directly previous commad, trggercmd works.
      Can you help to fix the problem please?

      thanks for support
      Egidio

      1 Reply Last reply Reply Quote 0
      • First post
        Last post