• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

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