Vice City: Multiplayer

VC:MP Discussion => General Discussion => Topic started by: Cool on Jul 26, 2016, 08:58 AM

Title: Restarter
Post by: Cool on Jul 26, 2016, 08:58 AM
hello i have a vcmp server and its hosted on vps sometimes its got crashed so i want to do somthing like auto restart is it posible
Title: Re: Restarter
Post by: Anik on Jul 26, 2016, 09:51 AM
for linux
#!/bin/bash
ulimit -c unlimited
while true; do /dirctorty/of/server; done

and save it as anyname.sh . then give the file 755 permission
Title: Re: Restarter
Post by: KAKAN on Jul 26, 2016, 12:26 PM
A server won't crash by itself, you need to find the root cause of the crash and fix it.
Title: Re: Restarter
Post by: EK.IceFlake on Jul 26, 2016, 12:55 PM
for windows
:top
server64.exe
goto top
and save it as anyname.cmd
then open it
Title: Re: Restarter
Post by: KAKAN on Jul 26, 2016, 01:07 PM
Quote from: EK.CrystalBlue on Jul 26, 2016, 12:55 PMfor windows
:top
server64.exe
goto top
and save it as anyname.cmd
then open it
That does not work, I've tried. It will poke you with something like "Shall we terminate this app?(Y/N)"
It won't restart automagically.
Better, pick one from here( windows ): https://www.raymond.cc/blog/keep-application-running-by-automatically-rerun-when-closed/
Title: Re: Restarter
Post by: EK.IceFlake on Jul 26, 2016, 02:06 PM
It worked for me...
Title: Re: Restarter
Post by: Kewun on Jul 31, 2016, 06:19 AM
it works, no "Shall we terminate this app? y/n"

tested for lu serv.
Title: Re: Restarter
Post by: KAKAN on Jul 31, 2016, 06:36 AM
Quote from: Kewun on Jul 31, 2016, 06:19 AMit works, no "Shall we terminate this app? y/n"

tested for lu serv.
Quote from: KAKAN on Jul 26, 2016, 01:07 PMBetter, pick one from here( windows ): https://www.raymond.cc/blog/keep-application-running-by-automatically-rerun-when-closed/
Title: Re: Restarter
Post by: Thijn on Jul 31, 2016, 09:36 AM
Quote from: KAKAN on Jul 31, 2016, 06:36 AM
Quote from: Kewun on Jul 31, 2016, 06:19 AMit works, no "Shall we terminate this app? y/n"

tested for lu serv.
Quote from: KAKAN on Jul 26, 2016, 01:07 PMBetter, pick one from here( windows ): https://www.raymond.cc/blog/keep-application-running-by-automatically-rerun-when-closed/
If it works without shady programs, why bother installing one?
Title: Re: Restarter
Post by: Kewun on Oct 26, 2016, 12:37 PM
i have a question for autorestarter for linux

#!/bin/bash
ulimit -c unlimited
while true; do /dirctorty/of/server; done

how i can then stop the auto restarter?
Title: Re: Restarter
Post by: Thijn on Oct 26, 2016, 04:07 PM
If you're running that in a screen, just press CTRL+C a few times (first to kill the server, then to kill the restarter script). If you're having trouble, try adding a sleep to the loop like so:

while true; do /dirctorty/of/server; sleep 1; done
Title: Re: Restarter
Post by: aXXo on Oct 26, 2016, 05:31 PM
Quote from: Kewun on Oct 26, 2016, 12:37 PMhow i can then stop the auto restarter?
Use the command 'top' or 'ps -aux' to list all running processes.
Use 'kill' command with the PID of the restarter .sh script.
Title: Re: Restarter
Post by: Cool on Oct 27, 2016, 10:37 AM
Topic Locked.
Or some one will bump it again