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?
Unrealircd Stop error
Moderator: Supporters
-
- Posts: 4
- Joined: Mon Sep 13, 2021 7:36 pm
Unrealircd Stop error
---
devnull (on irc.unrealircd.org / irc.libera.chat)
devnull (on irc.unrealircd.org / irc.libera.chat)
Re: Unrealircd Stop error
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 ?
Can you pastebin your /opt/unrealircd/unrealircd file plz ?
-
- Posts: 4
- Joined: Mon Sep 13, 2021 7:36 pm
Re: Unrealircd Stop error
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
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
---
devnull (on irc.unrealircd.org / irc.libera.chat)
devnull (on irc.unrealircd.org / irc.libera.chat)