Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Easy delete .pid (s)

Experienced Elementalist
Joined
Aug 7, 2009
Messages
257
Reaction score
12
Since going one folder to another and searching files with pid extension to delete is very complicates sometimes. I came up with this idea and thought I just share it to you guys.

Note: Assuming you already know how to set permissions and experiences with linux os.

1. create an empty file a name of your choice on your Desktop. For me, I call it "Del PIDs".

2. Set the file permissions as read/write to all and allow executing file as program.

3. Open the file as text editor and type in there as shown:

Code:
find ../../ -name "*.pid" | xargs rm

4. Save it and double click it. When it ask to run as program, click on Run as (in) terminal.

If you done it correctly; it should delete all pid files from game, login, and db folder.
 
Junior Spellweaver
Joined
Jan 25, 2011
Messages
146
Reaction score
3
if your folder login it in home
try
sudo -s
password here:
rm /home/login/login_server.pid
 
Newbie Spellweaver
Joined
Jan 19, 2007
Messages
28
Reaction score
13
Another solution is to add in your run.sh or whatever the server (db,login,game) is called folowing line :

rm -rf *.pid

each time u start the server it will automatic delete .pid file .


this is my server run.sh example:


#!/bin/bash
cd /home/server/game
rm -rf *.pid
chmod +x *
ulimit -c unlimited
/home/server/game/hqguard -c /home/server/game/hqguard.ini
 
Experienced Elementalist
Joined
Aug 7, 2009
Messages
257
Reaction score
12
Another solution is to add in your run.sh or whatever the server (db,login,game) is called folowing line :

rm -rf *.pid

each time u start the server it will automatic delete .pid file .


this is my server run.sh example:


#!/bin/bash
cd /home/server/game
rm -rf *.pid
chmod +x *
ulimit -c unlimited
/home/server/game/hqguard -c /home/server/game/hqguard.ini


goodjob. I didn't think of that
 
Back
Top