• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Question How to control when a created Event Handler is called?

FreeUserName

New Pleskian
It seems that created event handlers are called after the event occurs.

Coming from:

https://docs.plesk.com/en-US/12.5/a...t-tracking/adding-event-handlers-linux.59206/

E.g. when I use the example 'customer account creation' event the bash script test-handler.sh is called after the client has been created what makes perfect sense here. But let's say I would like to perform a task before the 'Physical hosting deleted' event actually does its task? E.g. unmount a folder pointing to an NFS in the users httpdocs/.

In addition is there an overview of when events are called and in which order? E.g. Domain created > Physical hosting created > Event N.
 
Last edited:
The current behaviour is following - event handlers are started in selected priority order only after the event occurs.
 
Thanks Igor. I expected that. In that case; I searched the Plesk Administrator's Guide about Event Tracking / Handlers but I couldn't find the order of steps taken. Is there such an overview?

Let's say I like to unmount a directory mounted in httpdocs when I delete a domain. I found out that this is at least associated in the end with the event 'Physical hosting deleted'. What is the order of steps taken by Plesk? Is it for instance a sequence of different events? E.g.:

This is an assumption for illustration:
1) Domain status updated (e.g. to first suspend the domain before delete)
2) {Some process in between}
3) Domain deleted
4) {Some other process in between}
5) Physical hosting deleted

In this particuar case I'm trying to find the event just before Plesk will delete the domain directory (/var/www/vhosts/domain.ext/) where I can hook my unmout action on.

Any ideas or know where I can find the order of steps taken by Plesk for domain create / delete?
 
Back
Top