Easy delete .pid (s)

Results 1 to 6 of 6
  1. #1
    Account Upgraded | Title Enabled! asianking is offline
    True MemberRank
    Aug 2009 Join Date
    262Posts

    Easy delete .pid (s)


    RaGEZONE Recommends

    RaGEZONE Recommends

    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.


  2. #2
    Ultimate Member ivanosvsky1 is offline
    MemberRank
    Jan 2011 Join Date
    167Posts

    Re: Easy delete .pid (s)

    if your folder login it in home
    try
    sudo -s
    password here:
    rm /home/login/login_server.pid

  3. #3
    Account Inactive harylife is offline
    InactiveRank
    Apr 2012 Join Date
    3Posts

    Re: Easy delete .pid (s)

    thank you so much

  4. #4
    Account Inactive leonn30 is offline
    InactiveRank
    Apr 2013 Join Date
    1Posts

    Re: Easy delete .pid (s)

    Thank!!

  5. #5
    Member sicario4u is offline
    MemberRank
    Jan 2007 Join Date
    RomaniaLocation
    55Posts

    Re: Easy delete .pid (s)

    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

  6. #6
    Account Upgraded | Title Enabled! asianking is offline
    True MemberRank
    Aug 2009 Join Date
    262Posts

    big grin Re: Easy delete .pid (s)

    Quote Originally Posted by sicario4u View Post
    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




Advertisement