Advertisement
Powderking

sid-sabnzbdplus init.d schroot

Jul 20th, 2012
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. #! /bin/sh
  2. # sabnzbd+ start/stop SABnzbd+ in sid chroot
  3. #
  4. ### BEGIN INIT INFO
  5. # Provides: sid-sabnzbdplus
  6. # Required-Start: $local_fs $network $remote_fs
  7. # Required-Stop: $local_fs $network $remote_fs
  8. # Should-Start: NetworkManager
  9. # Should-Stop: NetworkManager
  10. # Default-Start: 2 3 4 5
  11. # Default-Stop: 0 1 6
  12. # Short-Description: SABnzbd+ binary newsgrabber in sid chroot
  13. # Description: SABnzbd+ is a web-based binary newsgrabber with nzb
  14. # support, designed to download files from Usenet.
  15. # This script provides that functionality as a system
  16. # service, starting the program on boot.
  17. ### END INIT INFO
  18. #
  19. # Written by Ramon Hofer <ramonhofer@bluewin.ch>
  20. #
  21. # update-rc.d sid-sabnzbdplus defaults
  22.  
  23. NAME=sabnzbdplus
  24. SCHROOT="sid"
  25.  
  26. case $1 in
  27. start | stop | reload | restart | force-reload)
  28. schroot -c $SCHROOT /etc/init.d/$NAME $1
  29. ;;
  30. *)
  31. N=`basename $0`
  32. echo "Usage: /etc/init.d/$N {start|stop|restart|reload|force-reload}" >&2
  33. exit 1
  34. ;;
  35. esac
  36.  
  37. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement