Page 1 of 1

Unrealircd Stop error

Posted: Mon Sep 13, 2021 7:46 pm
by rafaelgrether
Hello guys,
When I stop UnrealIrcd (./unrealircd stop), it is stopped, but return a strange error message.

See, unreal started and the pid file was created successfully:

But, when I stop him, I receive error:

UnrealIrcd was really terminated, the pidfile was closed...but why this error?

Re: Unrealircd Stop error

Posted: Thu Sep 16, 2021 10:22 am
by CrazyCat
Weird, as the line #76 just tests if the pid is really running and you already have passed tests on the existance of this file.
Can you pastebin your /opt/unrealircd/unrealircd file plz ?

Re: Unrealircd Stop error

Posted: Fri Oct 01, 2021 8:31 pm
by rafaelgrether
CrazyCat, Apologies for the delay.

The unrealircd script:

Also, I runed debug script execution (unrealircd stop) to help:

As you can see, "kill -15" (line 62) really kill the process (? = 0).

Should have passed on the first break (line 74).
But the "timing" after waiting for UnrealIRCd to terminate maybe is not synching, I guess.

So, I manually inserted sleep(1) between lines 68-69, only for testing purpose.
And the problem was solved.

Another solution, may be redirect possible errors stderr of line 76 to /dev/null