• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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