2010-07-13, 18:21
I copied the SickBeard script rather than the SABnzbd. I forget where I got it.
Looks like I forgot to update some of the comments...
This works with my SheevaPlug running Debian.
The "find" commands are to invoke the automountfs. The first time you hit the directory it shows nothing, then gets auto mounted, then works fine.
Code:
#! /bin/sh
### BEGIN SCRIPT INFO
# Provides: Episode Butler Start/Stop
# Copied by Ainer.org from http://forums.sabnzbd.org/index.php?topic=2013.0
# Written by Tret on April 17, 2009
# Modified by Ainer on March 26, 2010
# Modified by Ainer on March 31, 2010
### END SCRIPT INFO
USER="downloader"
HOME="/home/downloader"
SB_IP="localhost:5000"
SB_USER=""
SB_PASS=""
case "$1" in
start)
echo "Starting Movie Manager"
find /net/server.local/tank/Movies > /dev/null
cd $HOME/Movie-Manager/
/usr/bin/sudo -u $USER -H python $HOME/Movie-Manager/MovieManager.py & > /dev/null 2>&1
#/home/downloader/Movie-Manager/MovieManager.py
;;
stop)
echo "Shutting down Sick Beard."
/usr/bin/wget -q delete-after "http://$SB_IP/config/exit"
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
Looks like I forgot to update some of the comments...
This works with my SheevaPlug running Debian.
The "find" commands are to invoke the automountfs. The first time you hit the directory it shows nothing, then gets auto mounted, then works fine.