Cant install background agent
-
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.
-
This is not existing:
/usr/share/triggercmdagent/app/src/installdaemon.sh -
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. -
I changed some lines in daemoninstall.sh and it works now
-
@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.
-
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
-
Thanks @TI_Gaming_TV.