I am executing ts from my php script :
shell_exec("TS_SOCKET=/tmp/queue7 /usr/local/bin/ts echo 444444");
It queues the command successfuly but /tmp/queue7 is not created and I can not query which commands have been queued because socket file doesnt exist.
The strange thing is that, /tmp/queue7 is present in lsof output for the ts process which is created:
I found the culprit.
php has its own /tmp folder managed by systemd here :
/tmp/systemd-private-b2e586dfbf9c4a088d020efd21beb1cc-php-fpm.service-mBQbCu/tmp
I am executing ts from my php script :
shell_exec("TS_SOCKET=/tmp/queue7 /usr/local/bin/ts echo 444444");
It queues the command successfuly but /tmp/queue7 is not created and I can not query which commands have been queued because socket file doesnt exist. The strange thing is that, /tmp/queue7 is present in lsof output for the ts process which is created:but it doesnt exist in /tmp folder.