HI @Russ , sorry to tell you but didm t work....this was what i did.
1- delete all the folders /.TRIGGERcmdData in root and home.
2- login as rooter and run the command , put the token to connect. so far so good , i was able to connect and trigger some commands .
3- create a desktop entry on systemd :
[Unit]
Description=TRIGGERcmd Agent
*[Service]
Type=simple
ExecStart=/usr/bin/env node /home/tiago/Modelos/TRIGGERcmd-Agent/src/deamon.js --run root/.TRIGGERcmdData
User=root
Restart=always
[Install]
WantedBy=default.target*
I put the right patch to deamon.js because this /usr/share/triggercmdagent/app/src/daemon.js doesnt exist
then i save on /etc/systemd/system
4- sudo systemctl daemon-reload
sudo systemctl start triggercmdagent
sudo systemctl status triggercmdagent
and is give an error :
● triggercmdagent.service - TRIGGERcmd Agent
Loaded: loaded (/etc/systemd/system/triggercmdagent.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2020-02-27 13:41:39 GMT; 4s ago
Process: 2246 ExecStart=/usr/bin/env node /home/tiago/Modelos/TRIGGERcmd-Agent/src/deamon.js --run root/.TRIGGERcmdData (code=exited, status=1/FAILURE)
Main PID: 2246 (code=exited, status=1/FAILURE)
fev 27 13:41:39 kodi systemd[1]: triggercmdagent.service: Scheduled restart job, restart counter is at 5.
fev 27 13:41:39 kodi systemd[1]: Stopped TRIGGERcmd Agent.
fev 27 13:41:39 kodi systemd[1]: triggercmdagent.service: Start request repeated too quickly.
fev 27 13:41:39 kodi systemd[1]: triggercmdagent.service: Failed with result 'exit-code'.
fev 27 13:41:39 kodi systemd[1]: Failed to start TRIGGERcmd Agent.
Help Please, i really like to put this working
maybe will be easy if you do a tutorial about arch from the install to the daemon , i do not know what to do anymore
What i did wrong ? now the account that will match the ID