Hi guys, from previous issues, im trying to run a ffmpeg command as a service...
If I execute from command line, it works like a charm:
pi@pi2:~ $ systemctl --user start myscript
But, when I execute it from exec node I got:
Failed to connect to bus: No existe el fichero o el directorio
the flow:
[{"id":"9e05b5cf.bce038","type":"exec","z":"bcea7856.3d9df8","command":"systemctl --user start myservice","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"ffmpeg","x":420,"y":120,"wires":[["ce60718c.630bf"],["ce60718c.630bf"],["ce60718c.630bf"]]},{"id":"72214724.8e5f18","type":"inject","z":"bcea7856.3d9df8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":120,"wires":[["9e05b5cf.bce038"]]},{"id":"ce60718c.630bf","type":"debug","z":"bcea7856.3d9df8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":760,"y":120,"wires":[]}]
I've read across lots of linux forums and its seems its a issue related to enviroments variables like XDG_RUNTIME_DIR or something.
Would somebody give me any clue about the issue and how to solve it? thx