Thread: Linux - Restart

Results 1 to 5 of 5
  1. #1 Linux - Restart 
    Registered Member

    Join Date
    Dec 2010
    Posts
    1,985
    Thanks given
    174
    Thanks received
    256
    Rep Power
    223
    Well i have a run.sh when you crash it restarts instantly

    But is their a way to when it get's crahsed it save's the char files instead of resetting them?

    Yes i have shutdown hook

    Code
    Code:
    while true
    do
    java -cp bin:deps/poi.jar:deps/mysql.jar:deps/mina.jar:deps/slf4j.jar:deps/slf4j-nop.jar:deps/jython.jar:log4j-1.2.15.jar: server.Server
    done
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jan 2009
    Posts
    778
    Thanks given
    74
    Thanks received
    61
    Rep Power
    0
    If you have a shutdown hook, make the server loop through all the players online and save their accounts.
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Dec 2010
    Posts
    1,985
    Thanks given
    174
    Thanks received
    256
    Rep Power
    223
    But im using A linux vps, and it's not actually closing the server it's just Saying "Killed" and destryoing the process.
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jan 2009
    Posts
    778
    Thanks given
    74
    Thanks received
    61
    Rep Power
    0
    [Only registered and activated users can see links. ]

    Look there, they are talking about shutdown hook in linux, read to the bottom and check out that link.
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Dec 2010
    Posts
    1,985
    Thanks given
    174
    Thanks received
    256
    Rep Power
    223
    It works if closed manually, but if it's crashed and restarted it doesent work.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI] restart help
    By EricFtw in forum Help
    Replies: 12
    Last Post: 11-07-2010, 11:08 PM
  2. [pi] rollback when restart...
    By superbombet in forum Help
    Replies: 21
    Last Post: 11-06-2010, 02:13 AM
  3. 317 Restart?
    By akaweed in forum Help
    Replies: 2
    Last Post: 01-14-2010, 05:11 PM
  4. [Linux] Compling error(s) [Linux]
    By Apower in forum Application Development
    Replies: 3
    Last Post: 04-29-2009, 09:53 PM
  5. Vixta Linux, vista for linux.
    By JavaBoy in forum Software
    Replies: 2
    Last Post: 07-15-2008, 11:48 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •