Hello,
I set up the a listener like described here but when updating system I get following error message:
Code
- [FATAL] iMSCP::EventManager::_init: Bad name after afterSetupRestartServices' at /etc/imscp/listeners.d/80_postsrsd_config.pl line 99, <$fh> line 388.Compilation failed in require at /var/www/imscp/engine/PerlLib/iMSCP/EventManager.pm line 164, <$fh> line 388.E: Problem executing scripts DPkg::Post-Invoke 'if [ -x /usr/local/sbin/imscp-dpkg-post-invoke.pl -a ${IMSCP_SETUP:=0} -eq 0 ]; then /usr/bin/perl /usr/local/sbin/imscp-dpkg-post-invoke.pl -d; fi'E: Sub-process returned an error codeFailed to perform requested operation on package. Trying to recover:
The code in line 98 - 102 is:
Code
- if(defined $main::execmode && $main::execmode eq 'setup) {
- iMSCP::Eventmanager->getInstance()->register('afterSetupRestartServices', \&postsrsListener);
- } else {
- iMSCP::EventManager->getInstance()->register(['afterMtaAddDmn', 'afterMtaAddSub', 'afterMtaDelDmn', 'afterMtaDelSub'], \&postsrsListener);
- }
I already checked the name of the sub and the name of the trigger twice but I get no clue why this happens.
Hope somebody can give me a cue where to search.
Regards Jörg