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

    Cant install background agent

    General Discussion
    2
    7
    304
    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.
    • T
      TI_Gaming_TV
      last edited by TI_Gaming_TV

      i installed Triggercmd on by Dietpi and everything works fine, but im not able to install the background agent. My directory is root/TRIGGERcmd/src-Agent. The daemoninstall.sh is there, but im not able to install it.

      1 Reply Last reply Reply Quote 0
      • T
        TI_Gaming_TV
        last edited by

        This is not existing:
        /usr/share/triggercmdagent/app/src/installdaemon.sh

        1 Reply Last reply Reply Quote 0
        • T
          TI_Gaming_TV
          last edited by

          When i try this: /root/TRIGGERcmd-Agent/src/installdaemon.sh

          I get this: find: ‘/usr/*/triggercmdagent’: No such file or directory
          Failed to enable unit: Unit file triggercmdagent.service does not exist.
          Unit triggercmdagent.service could not be found.

          1 Reply Last reply Reply Quote 0
          • T
            TI_Gaming_TV
            last edited by

            I changed some lines in daemoninstall.sh and it works now

            RussR 1 Reply Last reply Reply Quote 0
            • RussR
              Russ @TI_Gaming_TV
              last edited by

              @TI_Gaming_TV good job getting it to work.

              If you don't mind sharing what you had to change, I could probably make the script more universal so it works on more OS's.

              Russell VanderMey

              1 Reply Last reply Reply Quote 0
              • T
                TI_Gaming_TV
                last edited by

                I changed in the installdaemon.sh the code to this:

                find / root/TRIGGERcmd-Agent -type d -name "src" | grep /src | while read dname; do /root/TRIGGERcmd-Agent/src env node $dname/agent. js --daemoninstall /bin/sh $dname/daemonmqr.sh --add $HOME/ . TRIGGERcmdData

                RussR 1 Reply Last reply Reply Quote 0
                • RussR
                  Russ @TI_Gaming_TV
                  last edited by

                  Thanks @TI_Gaming_TV.

                  Russell VanderMey

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