• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Plesk 12 Event Handlers -- where are they stored?

Status
Not open for further replies.

gbotica

Regular Pleskian
Hi,

I'm trying to find an easy way to copy a number of Event Handlers from the Plesk 12 Event Manager from one Plesk install to another. Is there a way to do this?

I've had a look, but cannot seem to figure it out -- are these handlers stored in the PSA database, or somewhere on the file system?

Thanks.
 
Yes, event handlers stored in psa database. Additionaly there is special CLI utility. For instance:

[root@ppu12-1 ~]# /usr/local/psa/bin/event_handler -l
Id 1
Name Service stopped
Priority 0
User root
Command /usr/local/psa/admin/bin/modules/watchdog/wd --unmonit-service=<new_service> --plesk-name

[root@ppu12-1 ~]# plesk db

mysql> select * from event_handlers;
+----+-----------+----------+------+-------------------------------------------------------------------------------------------+
| id | action_id | priority | user | command |
+----+-----------+----------+------+-------------------------------------------------------------------------------------------+
| 1 | 2 | 0 | root | /usr/local/psa/admin/bin/modules/watchdog/wd --unmonit-service=<new_service> --plesk-name |
+----+-----------+----------+------+-------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
 
Status
Not open for further replies.
Back
Top