Manually stop maps in Ubuntu (PWServer 1.4.5)

Results 1 to 9 of 9
  1. #1
    Member blackb0xx is offline
    MemberRank
    Dec 2012 Join Date
    64Posts

    Support Manually stop maps in Ubuntu (PWServer 1.4.5)

    Hello,

    So I think I have resolved my iweb issues and I am on to a new one. I find it is pretty pointless to run a 1.4.5 server if you cannot stop individual maps. Seeing as how pwAdmin 1.4.5 has not been released and I can't seem to figure out how to update it properly I am at a loss.

    I'd like to ask if anyone can help me with creating a script to stop maps manually. I know how to create .sh scripts but when I do try to kill individual maps it just auto-starts the map again.

    In 1.3.6 all the way up to 1.4.4 we relied on pwAdmin, I know I did have a script back in the day but since then that HD has crashed and was not recoverable.

    I've used the information given from the following sites:
    - Stop Map Manual
    - Stop Specific Map Crontab

    Again as I sated when I run the commands from the Stop Map Manual thread linked above it just kills one process of the map and loads another. So at this point I can either start individual maps which works fine, and I can kill all maps and all aspects of the server, but trying to kill a map individually is just not working as intended.

    I could use cron but I honestly am unfamiliar with it.

    Example
    Code:
    ./gs is12
    ps a | grep is12
    id = 1784
    kill -9 1784
    ps a | grep is12
    id = 1785
    Obviously "id = 1784" is not the proper output but you get the idea.

    I did try and fix pwAdmin 1.4.4 to work with 1.4.5 but was unsuccessful, I'm sure I'm missing something basic but I just can't find it. It'd help if I knew .jsp but I really don't. Also I noticed pwAdmin calls for iweb_map.sh but iweb_map.sh does not exist in any of the releases I downloaded, so unless this is created on an as needed basis I can't find it in any release... and yes I did search. All of the posts I found were either "yeah I got it to work but I'm not releasing", or "I'll release it later" or some abstract answer that no one except that person who modified it and those who know how to modify it could understand... In short, dead-end posts or comments.

    Could someone spare some time to provide any assistance please?

    For the record I didn't state a specific release I am using because at this point I have about several different installs that I am working off of.

    - 1.3.6
    - 1.4.4
    - 3x 1.4.5

    Thanks.
    Last edited by blackb0xx; 06-12-12 at 06:44 AM. Reason: Added servers used


  2. #2
    Valued Member gost0 is offline
    MemberRank
    Apr 2012 Join Date
    120Posts

    Re: Manually stop maps in Ubuntu (PWServer 1.4.5)

    jetty-7.4.2/pwAdmin works to start the maps and stop..

  3. #3
    Member blackb0xx is offline
    MemberRank
    Dec 2012 Join Date
    64Posts

    Re: Manually stop maps in Ubuntu (PWServer 1.4.5)

    I'll have to look again but last time I tried that it just sat there laughing at me. Well not really but you know, it says it started the maps but it really didn't. Thanks I'll have to dig around again and see what happened. You're positive this is with latest pwAdmin from ronny's tools on a 1.4.5 server? May I ask which release you're using to test this on please? If you don't want to answer on here you could PM me if you'd like.

  4. #4
    Valued Member gost0 is offline
    MemberRank
    Apr 2012 Join Date
    120Posts

    Re: Manually stop maps in Ubuntu (PWServer 1.4.5)

    download from pwTools SVN-Downloader there you can get the jetty and the pwadmin works with all server of i am using

  5. #5
    Member blackb0xx is offline
    MemberRank
    Dec 2012 Join Date
    64Posts

    Re: Manually stop maps in Ubuntu (PWServer 1.4.5)

    Thanks gost0, I did download that so I am installing a fresh copy of the server and retrying, will post results when I'm done. Until then I was curious what guide you followed to get your server up? Or did you make your own? I have followed 3 guides so far and have had a working server however 2 of the ones I followed had incorrect elements.data or had errors on start up that need to be fixed. I don't expect a flawless release and I am happy to fix them but I was wondering which guide you specifically used if any.

  6. #6
    Nerd-IO Romulan is offline
    MemberRank
    Feb 2009 Join Date
    BelgiumLocation
    3,333Posts

    Re: Manually stop maps in Ubuntu (PWServer 1.4.5)

    Well... very simple to start and kill maps... Take those scripts as example and edit them to fit your needs.


    startmap:
    Code:
    #!/bin/sh
    
    cd /PWServer/gamed; ./gs01
    killmap:
    Code:
    #!/bin/sh
    
    /bin/kill -9  `ps -ef | grep gs01 | grep -v grep | awk '{print $2}'`

  7. #7
    Valued Member gost0 is offline
    MemberRank
    Apr 2012 Join Date
    120Posts

    Re: Manually stop maps in Ubuntu (PWServer 1.4.5)

    Quote Originally Posted by blackb0xx View Post
    Thanks gost0, I did download that so I am installing a fresh copy of the server and retrying, will post results when I'm done. Until then I was curious what guide you followed to get your server up? Or did you make your own? I have followed 3 guides so far and have had a working server however 2 of the ones I followed had incorrect elements.data or had errors on start up that need to be fixed. I don't expect a flawless release and I am happy to fix them but I was wondering which guide you specifically used if any.
    my server files i buyed from my friend i am not using from here waiting from 343 release
    or just install the jetty then start world map then try with pwadmin
    1.png

  8. #8
    Member blackb0xx is offline
    MemberRank
    Dec 2012 Join Date
    64Posts

    Re: Manually stop maps in Ubuntu (PWServer 1.4.5)

    Thanks Rom, I've been playing with your script when I have time. I'll post results when I get a chance.

  9. #9
    Nerd-IO Romulan is offline
    MemberRank
    Feb 2009 Join Date
    BelgiumLocation
    3,333Posts

    Re: Manually stop maps in Ubuntu (PWServer 1.4.5)

    No problem :)



Advertisement