Advertisement
Guest User

Untitled

a guest
Aug 27th, 2012
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. #! /bin/sh
  2. # /etc/init.d/minecraft
  3.  
  4. ### BEGIN INIT INFO
  5. # Provides: minecraft
  6. # Required-Start: $local_fs $remote_fs $network $syslog
  7. # Required-Stop: $local_fs $remote_fs $network $syslog
  8. # Default-Start: 2 3 4 5
  9. # Default-Stop: 0 1 6
  10. # Short-Description: Inicia o Servidor de Minecraft no boot.
  11. # Description: Liga o servidor de Minecraft durante o boot.
  12. ### END INIT INFO
  13.  
  14. # Inicia o Servidor
  15. cd /home/minecraft/; java -Xmx1024M -Xms1024M -jar server.jar minecraft_server.jar
  16.  
  17. # Carry out specific functions when asked to by the system
  18. case "$1" in
  19. start)
  20. echo "Iniciando o servidor de Minecraft..."
  21. echo "Iniciado."
  22. ;;
  23. stop)
  24. echo "Desligando..."
  25. echo "Desligado."
  26. ;;
  27. *)
  28. echo "Uso: /etc/init.d/minecraft {start|stop}"
  29. exit 1
  30. ;;
  31. esac
  32.  
  33. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement