daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. root@glados:~# cat /etc/init.d/hlds
  2. #!/bin/bash
  3.  
  4.  
  5. start() {
  6.  
  7. #       COMMAND="bash /srv/hlds/scripts/run_hldm.sh &> /dev/null &"
  8. #       COMMAND2=""
  9.          sudo -u hlds "/srv/hlds/scripts/run_hldm.sh"
  10.          sudo -u hlds "/srv/hlds/scripts/run_hldm2.sh"
  11.  
  12. }
  13.  
  14. stop() {
  15.         killall hlds_run > /dev/null
  16.         killall hlds_amd > /dev/null
  17. }
  18.  
  19.  
  20. case "$1" in
  21.  
  22. start)
  23.         echo "Starting HLDS"
  24.         start
  25. ;;
  26.  
  27.  
  28. stop)
  29.         echo "Stopping HLDS"
  30.         stop
  31. ;;
  32.  
  33. restart)
  34.         echo "Restarting HLDS"
  35.         stop
  36.         start
  37. ;;
  38.  
  39.  
  40. *)
  41.         echo "Use {start|stop|restart}"
  42.         exit 1
  43. esac
  44.  
  45. exit 0
RAW Paste Data
Top