[DiscordArchive] What's wrong with it?
[DiscordArchive] What's wrong with it?
Archived author: Revision • Posted: 2022-04-30T22:16:43.931000+00:00
Original source
What's wrong with it?
Archived author: Grandold • Posted: 2022-04-30T22:16:45.983000+00:00
Original source
it just restarts server 5 times
Archived author: Grandold • Posted: 2022-04-30T22:16:52.096000+00:00
Original source
i think
Archived author: Grandold • Posted: 2022-04-30T22:17:04.009000+00:00
Original source
so even if u want to shut it down, it restarts 4 times
Archived author: Revision • Posted: 2022-04-30T22:18:47.957000+00:00
Original source
```
#!/bin/bash
while :; do
./worldserver
if [[ $? == 0 ]]; then
break
fi
sleep 5
done
```
That's what mine looks like. If you run .server shutdown (or restart) it'll stop the server, if it crashes it'll restart it. Not sure why the regular one is set to 5 restarts, doesn't make sense.
Archived author: Grandold • Posted: 2022-04-30T22:20:27.001000+00:00
Original source
mine never stopped on .server shutdown, didnt debug rly just used the screen clear script after
Archived author: Grandold • Posted: 2022-04-30T22:21:18.263000+00:00
Original source
https://github.com/azerothcore/azerothco...-restarter
Archived author: Revision • Posted: 2022-04-30T22:21:23.101000+00:00
Original source
I looked at it
Archived author: Grandold • Posted: 2022-04-30T22:21:35.352000+00:00
Original source
if [ $_instant_crash_count -gt 5 ]; then
Archived author: Revision • Posted: 2022-04-30T22:21:54.115000+00:00
Original source
Yeah