View Single Post
Old 09-24-2013, 04:21 PM   #1
Junior Member
 
Join Date: Oct 2011
Posts: 13
Patrick is on a distinguished road
Default Custom Operations not working

Hello,
I would perform some custom operations after a domain get's created or deleted.
I followed this guide:
http://en.ispdoc.com/index.php/Perfo...tom_operations

For testing i added a /usr/local/ispmgr/etc/ispmgr_mod_jetty-add.xml:
Code:
<?xml version="1.0" encoding="UTF-8"?>
  <mgrdata>
    <handler name="jetty_add.pl" type="cgi">
      <event after="yes">domain.edit</event>
    </handler>
  </mgrdata>
And added /usr/local/ispmgr/addon/jetty_add.pl:
Code:
#!/usr/bin/perl
use CGI;
my $Q = new CGI;

    system("touch /root/jetty_added");

print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<doc/>\n";
jetty_add.pl has ben chmoded 750 and is owned by root.root

I restarted ispmgr and tried to add a domain. The domain gets created but nothing happens. No error or something, but jetty_added gets not created.

Running perl /usr/local/ispmgr/addon/jetty_add.pl creates a empty file /root/jetty_added, so the script is working. But it seems ispmgr doesn't fire it on events.

What is missing?
Patrick is offline   Reply With Quote