Find the answer to your Linux question:
Results 1 to 2 of 2
Hello i recently got hold of my friends server cause it was lagging (rather bad) i found we used a ftp at one point to start and stop the server ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2011
    Location
    England
    Posts
    1

    Need help with a simple .sh command line


    Hello
    i recently got hold of my friends server cause it was lagging (rather bad)
    i found we used a ftp at one point to start and stop the server (or thats what he told me)
    using winscp (im on a windows client but linux server)
    i use a "start.sh" that is ment to start the server i got told by him that it also stopped and restarted the server i looked at the line and saw that it does NOT do that here is the command it has in it

    #!/bin/sh
    java -d64 -Xincgc -Xmx1024M -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui
    to open a jar file that inturn runs the server
    anyway it seems to me i have loads of the same server open where he is just opening agian and agian

    my question to you is what would i have to put into a .sh to ether
    • End the server
    • End the process
    • Stop then start the server


    Cause i seem to be having problems finding help on this

    thank you for your time

    -nime3

  2. #2
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,134

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •