Meuzzin

SickBeard Line 39 Syntax error

Jan 1st, 2014
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. #! /bin/sh
  2. # Author: daemox
  3. # Basis: Parts of the script based on and inspired by work from
  4. # tret (sabnzbd.org), beckstown (xbmc.org),
  5. # and midgetspy (sickbeard.com).
  6. # Fixes: Alek (ainer.org), James (ainer.org), Tophicles (ainer.org),
  7. # croontje (sickbeard.com)
  8. # Contact: http://www.ainer.org
  9. # Version: 3.1
  10. ### BEGIN INIT INFO
  11. # Provides: sickbeard
  12. # Required-Start: $local_fs $network $remote_fs
  13. # Required-Stop: $local_fs $network $remote_fs
  14. # Should-Start: $NetworkManager
  15. # Should-Stop: $NetworkManager
  16. # Default-Start: 2 3 4 5
  17. # Default-Stop: 0 1 6
  18. # Short-Description: starts and stops sick beard
  19. # Description: Sick Beard is an Usenet PVR. For more information see:
  20. # http://www.sickbeard.com
  21. ### END INIT INFO
  22. #Required -- Must Be Changed!
  23. USER="CHANGEME" #Set Linux Mint, Ubuntu, or Debian user name here.
  24.  
  25. #Required -- Defaults Provided (only change if you know you need to).
  26. HOST="127.0.0.1" #Set Sick Beard address here.
  27. PORT="8081" #Set Sick Beard port here.
  28.  
  29. #Optional -- Unneeded unless you have added a user name and password to Sick Beard.
  30. SBUSR="" #Set Sick Beard user name (if you use one) here.
  31. SBPWD="" #Set Sick Beard password (if you use one) here.
  32.  
  33. #Script -- No changes needed below.
  34. case "$1" in
  35. start)
  36. #Start Sick Beard and send all messages to /dev/null.
  37. cd /home/$USER/.sickbeard
  38. echo "Starting Sick Beard"
  39. sudo -u $USER -EH nohup python /home/$USER/.sickbeard/SickBeard.py -q > /dev/null 2>&1 &
  40. ;;
  41. stop)
  42. #Shutdown Sick Beard and delete the index.html files that wget generates.
  43. echo "Stopping Sick Beard"
  44. wget -q --user=$SBUSR --password=$SBPWD "http://$HOST:$PORT/home/shutdown/" --delete-after
  45. sleep 6s
  46. ;;
  47. *)
  48. echo "Usage: $0 {start|stop}"
  49. exit 1
  50. esac
  51. exit 0
Advertisement
Add Comment
Please, Sign In to add comment