Custom Script for Suspend/Unsuspend

srelliott

Verified User
Joined
Apr 6, 2005
Messages
44
Hello,

We have an interesting situation where I need to run a custom script when a user is suspened/unsuspended.

We would need the environmental variable 'domain_name' acessible.

I am unable to find such a custom script at this time, does it exist or would this be a feature request?

For those wondering why we would need such a script...

We are running mason. When an account is suspened or unsuspended the real index.html does not get touched and therefore the cached mason file "index.html" does not get updated.

We have to manually go in and delete the file.

rm -rf /etc/httpd/mason/domain.com/obj/index.html

--
Shannon
 
After giving it some more thought.....

I think I'll just touch the suspend "index.html" file every couple minutes to ensure the cache gets updated.

But that doesn't work, it'll only update the file for suspending, not unspending.....

Mason caches based on time and the problem is I'd need to touch the index.html file of the user directory we're unsuspending....

So, I still really need to know what domains are being affected and then enumrate that list and delete the index.html for each domain.

Please help.
 
Last edited:
Back
Top