Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/sh
- # sabnzbd+ start/stop SABnzbd+ in sid chroot
- #
- ### BEGIN INIT INFO
- # Provides: sid-sabnzbdplus
- # Required-Start: $local_fs $network $remote_fs
- # Required-Stop: $local_fs $network $remote_fs
- # Should-Start: NetworkManager
- # Should-Stop: NetworkManager
- # Default-Start: 2 3 4 5
- # Default-Stop: 0 1 6
- # Short-Description: SABnzbd+ binary newsgrabber in sid chroot
- # Description: SABnzbd+ is a web-based binary newsgrabber with nzb
- # support, designed to download files from Usenet.
- # This script provides that functionality as a system
- # service, starting the program on boot.
- ### END INIT INFO
- #
- # Written by Ramon Hofer <ramonhofer@bluewin.ch>
- #
- # update-rc.d sid-sabnzbdplus defaults
- NAME=sabnzbdplus
- SCHROOT="sid"
- case $1 in
- start | stop | reload | restart | force-reload)
- schroot -c $SCHROOT /etc/init.d/$NAME $1
- ;;
- *)
- N=`basename $0`
- echo "Usage: /etc/init.d/$N {start|stop|restart|reload|force-reload}" >&2
- exit 1
- ;;
- esac
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement