Unrealircd Stop error

If you hit any installation issues or cannot connect to your freshly installed UnrealIRCd then this forum is for you.

Moderator: Supporters

Post Reply
rafaelgrether
Posts: 2
Joined: Mon Sep 13, 2021 7:36 pm

Unrealircd Stop error

Post 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: https://pasteboard.co/sEecKBx23L7U.png

But, when I stop him, I receive error:
https://pasteboard.co/aiyMjPHbV2fY.png

UnrealIrcd was really terminated, the pidfile was closed...but why this error?
CrazyCat
Posts: 150
Joined: Thu Apr 28, 2005 1:05 pm
Location: France
Contact:

Re: Unrealircd Stop error

Post 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 ?
rafaelgrether
Posts: 2
Joined: Mon Sep 13, 2021 7:36 pm

Re: Unrealircd Stop error

Post by rafaelgrether »

CrazyCat, Apologies for the delay.

The unrealircd script: https://pastebin.com/sTRYAR2f

Also, I runed debug script execution (unrealircd stop) to help: https://pastebin.com/Sqps0d9T

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
Post Reply