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

startup service for openwrt

Raspberry Pi
1
1
204
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 Mar 2, 2024, 10:48 PM

    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
    1 out of 1
    • First post
      1/1
      Last post