@kalen-daniel, I didn't provide a method to auto-start the triggercmdagent in the foreground on a Pi. Your method is helpful because it provides a way to do that.
I figured most people would not run X-windows on their Pi's, like my-use case as a garages door opener. In cases like that, you'd run this script as root:
... to install the triggercmdagent as a systemd daemon that would only run background commands.
After you run that script you can stop/start or get a status of the agent with these commands:
systemctl stop triggercmdagent systemctl start triggercmdagent systemctl status triggercmdagent