Run workflows commands with /tmp paths in Linux systems

When using Linux as OS for Filecloud systems, some workflows include the /tmp folder.

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:

  1. 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
  2. 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