Jump to content

CLI script path recreated after rename


dark4ce

Recommended Posts

Hello,

 

I have the next case:

 

- PHP script executed as CLI contains a loop, runs until i set a signal in the db or until i use kill -9 proc_id

- i launch the script

- here we can have 2 options: either kill the script or let it run

- say we have the script somewhere in /var/www/script/cli/script.php

- rename above /var/www/script to /var/www/script1

- after doing this, even if i killed the script or not, in some cases, on some servers, the /var/www/script/cli/ path magically reapears :)

 

Any thoughts on this problem? Don't really know where to start debugging this from...tried reproducing this on my server but couldn't, the path does not reapear in any of the mentioned cases.

 

10x in advance,

Catalin.

Link to comment
https://forums.phpfreaks.com/topic/216883-cli-script-path-recreated-after-rename/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.