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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login