PDA

View Full Version : Script to instantaneously write to user.conf or domain.conf?



interfasys
01-30-2011, 11:55 AM
It's currently not possible to write to these files directly from custom scripts because DA will overwrite them at the end of the process.

So, has someone found a good way to instantaneously write to user.conf or domain.conf by forking processes?

We use a queue manager, but the problem is that because there is a delay, pages that modify those files don't get to see the real values when an update is taking place.

i.e.
load page
value=on
turn off
page gets refreshed, showing value as still on
qm sets value=off
manually refresh the page to see the new value

interfasys
02-02-2011, 10:37 AM
Looks like this was attempted a few years back, but a solutions was never found.
http://www.directadmin.com/forum/showthread.php?t=16190&highlight=php+fork

interfasys
02-05-2011, 05:41 AM
New pre/post scripts will be introduced that will allow writing to user.conf and domain.conf