Jump to content
  • 0
Sign in to follow this  
dukaibalu1

Channel script

Question

hello metin2dev
Can somebody help me with the channel automatically restarts in a script?
I think that when the channel is stopped, it will automatically start again.

Share this post


Link to post

6 answers to this question

Recommended Posts

  • 0

Are you referring to a script that will automatically start the channel again after it has crashed?

Share this post


Link to post
  • 0

Are you referring to a script that will automatically start the channel again after it has crashed?

 

Yes

Share this post


Link to post
  • 0

you could make a cronjob for this but it's better to fix your problem instead of leaving it broken and causing data loss.

Share this post


Link to post
  • 0

You can do what Rumor says or you can do it via shell:

 

make a file restart.sh with permissions 777

#!/bin/sh
sh start.sh
sleep 60*5
sh restart.sh

in start.sh:

#!/bin/sh

cd /usr/home/metin2/db && ./db &
cd /usr/home/metin2/auth && ./auth &
cd /usr/home/metin2/channel1 && ./game &
cd /usr/home/metin2/channel2 && ./game &
cd /usr/home/metin2/game99 && ./game &

NOT TESTED(But i hope it will work)

Share this post


Link to post
  • 0

you can use Tim's vrunner to daemonize game & db then it will restart automatically

Share this post


Link to post
  • 0

you can use Tim's vrunner to daemonize game & db then it will restart automatically

 

I don't trust for tim daemon. Better solution is use daemon it's more extended and very safe. If you want you can setup startup delay, run as user, and many more. For more info type /usr/bin/daemon when is installed.

Here is source http://libslack.org/daemon/#download

  • Love 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.