Page 1 of 1

zmcontrol.pl not running through script please help gurus.

Posted: Sat Dec 01, 2012 4:29 pm
by ramasule
Hello,

Through adding in some "prints" into my zmcontrol.pl I have been able to track down where the script fails.
Ubuntu 12
Zm 1.25

Code: Select all

 if ( my $cpid = fork() )
    {
        logReinit();

        # Parent process just sleep and fall through
        socket( CLIENT, PF_UNIX, SOCK_STREAM, 0 ) or die( "Can't open socket: $!" );
        my $attempts = 0;
        while (!connect( CLIENT, $saddr ))
        {
            $attempts++;
            Fatal( "Can't connect: $!" ) if ($attempts > MAX_CONNECT_DELAY);
            sleep(1);
        }
    }
It gets into this loop and times out in the while(!connect(CLIENT, $saddr))
It never makes it into the elseif loop below that one which is where the actual action is I believe.

Thank you for your help,

Ramasule

Re: zmcontrol.pl not running through script please help guru

Posted: Sun Dec 02, 2012 1:11 am
by ramasule
just compiled this on Centos and it was the same
Ubuntu 12 Centos 6 not working

Re: zmcontrol.pl not running through script please help guru

Posted: Fri Dec 07, 2012 6:48 pm
by Paranoid
Have a look at Options -> Paths -> PATH_SOCKS

The directory this points to must exist for it to work and must be read and writeable by the user zm runs as.