Run workflows commands with /tmp paths in Linux systems
By default, using the /tmp folder with command workflows does not work as expected because the fcorchestrator services have a private /tmp folder
To change that behavior we need to disable the private tmp folder of fcorchestrator. To do that:
Edit the file /etc/systemd/system/fcorchestrator.service
>> vi /etc/systemd/system/fcorchestrator.service [Unit] Description= Filecloud Queue service After=httpd.service [Service] Type=simple PIDFile=/run/fcorchestrator.pid ExecStart=/bin/sh -c '/usr/bin/node /var/www/html/src/Scripts/fcorchestrator.js' ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s QUIT $MAINPID WorkingDirectory=/var/www/html/src/Scripts/ PrivateTmp=yes User=www-data Restart=always SuccessExitStatus=143 [Install] WantedBy=multi-user.target
Change PrivateTmp to no and execute the command "systemctl daemon-reload" and then restart fc-orchestrator with "service fcorchestrator restart"
>> vi /etc/systemd/system/fcorchestrator.service [Unit] Description= Filecloud Queue service After=httpd.service [Service] Type=simple PIDFile=/run/fcorchestrator.pid ExecStart=/bin/sh -c '/usr/bin/node /var/www/html/src/Scripts/fcorchestrator.js' ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s QUIT $MAINPID WorkingDirectory=/var/www/html/src/Scripts/ PrivateTmp=no User=www-data Restart=always SuccessExitStatus=143 [Install] WantedBy=multi-user.target >> systemctl daemon-reload >> service fcorchestrator restart