Jump to content

sh stop.sh question


Recommended Posts

So i got this script sh stop.sh but everytime i do it this comes out and my game dosent stop any one know something so i can get it fixed?

Spoiler

root@host:/usr/game # sh STOP.sh
Auth Server Stopped
kill: 9781: No such process
Kanal1 Stopped
kill: 9783: No such process
kill: 9782: No such process
kill: 9784: No such process
Kanal2 Stopped
kill: 5698: No such process
kill: 5696: No such process
kill: 5701: No such process
Kanal3 Stopped
kill: 1702: No such process
kill: 1864: No such process
kill: 1825: No such process
Kanal4 Stopped
kill: 1840: No such process
kill: 1844: No such process
kill: 1851: No such process
Kanal5 Stopped
kill: 1903: No such process
kill: 1934: No such process
kill: 1771: No such process
Kanal6 Stopped
kill: 1933: No such process
kill: 1782: No such process
kill: 1926: No such process
CH99 Stopped
kill: 9785: No such process
Database Stopped
root@host:/usr/game #
 

The STOP.sh script

Spoiler

ROOT=$PWD

echo "Auth Server Stopped"

# Shutdown auth
cd $ROOT/cores/auth && sh shut.sh
# Shutdown channel1
echo "Kanal1 Stopped"
cd $ROOT/cores/channel1/core1 && sh shut.sh
cd $ROOT/cores/channel1/core2 && sh shut.sh
cd $ROOT/cores/channel1/core3 && sh shut.sh
# Shutdown channel2
echo "Kanal2 Stopped"
cd $ROOT/cores/channel2/core1 && sh shut.sh
cd $ROOT/cores/channel2/core2 && sh shut.sh
cd $ROOT/cores/channel2/core3 && sh shut.sh
# Shutdown channel3
echo "Kanal3 Stopped"
cd $ROOT/cores/channel3/core1 && sh shut.sh
cd $ROOT/cores/channel3/core2 && sh shut.sh
cd $ROOT/cores/channel3/core3 && sh shut.sh
# Shutdown channel4
echo "Kanal4 Stopped"
cd $ROOT/cores/channel4/core1 && sh shut.sh
cd $ROOT/cores/channel4/core2 && sh shut.sh
cd $ROOT/cores/channel4/core3 && sh shut.sh
# Shutdown channel5
echo "Kanal5 Stopped"
cd $ROOT/cores/channel5/core1 && sh shut.sh
cd $ROOT/cores/channel5/core2 && sh shut.sh
cd $ROOT/cores/channel5/core3 && sh shut.sh
# Shutdown channel6
echo "Kanal6 Stopped"
cd $ROOT/cores/channel6/core1 && sh shut.sh
cd $ROOT/cores/channel6/core2 && sh shut.sh
cd $ROOT/cores/channel6/core3 && sh shut.sh
# Shutdown channel99
echo "CH99 Stopped"
cd $ROOT/cores/channel99 && sh shut.sh
# Shutdown db
echo "Database Stopped"
cd $ROOT/cores/db && sh shut.sh
sleep 2

 

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

On 12/17/2019 at 12:01 PM, easyx said:

So i got this script sh stop.sh but everytime i do it this comes out and my game dosent stop any one know something so i can get it fixed?

  Reveal hidden contents

root@host:/usr/game # sh STOP.sh
Auth Server Stopped
kill: 9781: No such process
Kanal1 Stopped
kill: 9783: No such process
kill: 9782: No such process
kill: 9784: No such process
Kanal2 Stopped
kill: 5698: No such process
kill: 5696: No such process
kill: 5701: No such process
Kanal3 Stopped
kill: 1702: No such process
kill: 1864: No such process
kill: 1825: No such process
Kanal4 Stopped
kill: 1840: No such process
kill: 1844: No such process
kill: 1851: No such process
Kanal5 Stopped
kill: 1903: No such process
kill: 1934: No such process
kill: 1771: No such process
Kanal6 Stopped
kill: 1933: No such process
kill: 1782: No such process
kill: 1926: No such process
CH99 Stopped
kill: 9785: No such process
Database Stopped
root@host:/usr/game #
 

The STOP.sh script

  Hide contents

ROOT=$PWD

echo "Auth Server Stopped"

# Shutdown auth
cd $ROOT/cores/auth && sh shut.sh
# Shutdown channel1
echo "Kanal1 Stopped"
cd $ROOT/cores/channel1/core1 && sh shut.sh
cd $ROOT/cores/channel1/core2 && sh shut.sh
cd $ROOT/cores/channel1/core3 && sh shut.sh
# Shutdown channel2
echo "Kanal2 Stopped"
cd $ROOT/cores/channel2/core1 && sh shut.sh
cd $ROOT/cores/channel2/core2 && sh shut.sh
cd $ROOT/cores/channel2/core3 && sh shut.sh
# Shutdown channel3
echo "Kanal3 Stopped"
cd $ROOT/cores/channel3/core1 && sh shut.sh
cd $ROOT/cores/channel3/core2 && sh shut.sh
cd $ROOT/cores/channel3/core3 && sh shut.sh
# Shutdown channel4
echo "Kanal4 Stopped"
cd $ROOT/cores/channel4/core1 && sh shut.sh
cd $ROOT/cores/channel4/core2 && sh shut.sh
cd $ROOT/cores/channel4/core3 && sh shut.sh
# Shutdown channel5
echo "Kanal5 Stopped"
cd $ROOT/cores/channel5/core1 && sh shut.sh
cd $ROOT/cores/channel5/core2 && sh shut.sh
cd $ROOT/cores/channel5/core3 && sh shut.sh
# Shutdown channel6
echo "Kanal6 Stopped"
cd $ROOT/cores/channel6/core1 && sh shut.sh
cd $ROOT/cores/channel6/core2 && sh shut.sh
cd $ROOT/cores/channel6/core3 && sh shut.sh
# Shutdown channel99
echo "CH99 Stopped"
cd $ROOT/cores/channel99 && sh shut.sh
# Shutdown db
echo "Database Stopped"
cd $ROOT/cores/db && sh shut.sh
sleep 2

 

please show us the sh shut.sh script from one of your cores

It's all lies

Link to comment
Share on other sites

39 minutes ago, easyx said:

the shut scripts are 


#!/bin/sh
if [ -r ./pid ]; then
    touch .killscript
    kill -1 `cat ./pid`
fi

 

the script is right, can you check if a pid file is created on your cores folder?

 

this is my kill script, seems the same to me, except if does not exist i'll get a warning

#!/bin/sh
if [ -r ./pid ]; then
    touch .killscript
    kill -1 `cat ./pid`
else
    echo 'server is not running.';
fi

 

It's all lies

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.