Default go script for unraid v5?


Recommended Posts

hi all

 

im doing some troubleshooting with sabnzb/sickbeard, it appears to be keep crashing randomly

 

i used a very old guide: http://lime-technology.com/wiki/index.php?title=Install_Python_based_servers

 

and now have just reinstalled them both using this guide: http://lime-technology.com/wiki/index.php/Setting_Up_SABnzbd,_SickBeard,_and_CouchPotoato#Using_the_Applications

 

now i need to redo my go script but cant remember what the default one is?

 

any ideas? i dont have any other apps running, i did have unmenu but dont really use it so will take this out also.

 

during my testing ive hashed out a few lines:

 

#!/bin/bash
# Start the Management Utility
/usr/local/sbin/emhttp &

# determine if cache drive online, retry upto 7 times
for i in 0 1 2 3 4 5 6 7
do
    if [ ! -d /mnt/cache ]
    then
      sleep 10
    fi
done

sed -i "s/guest_enable=YES/guest_enable=NO/" /etc/vsftpd.conf

# If Cache drive is online, start SABNzbd
#if [ -d /mnt/cache ]; then
  # Start SABnzbd and sickbeard
  #installpkg /boot/custom/SABnzbdDependencies-2.1-i486-unRAID.tgz
  #python /mnt/cache/.custom/sabnzbd/SABnzbd.py -d -s 192.168.1.5:88
  #nohup python /mnt/cache/.custom/sickbeard/SickBeard.py &
#fi

# Start Unmenu
#cd /boot/unmenu
#./uu
#cd /boot/packages && find . -name '*.auto_install' -type f -print | sort | xargs -n1 sh -c

 

i dont really know what i lines i need in the go script any more! lol

 

Thanks

Link to comment

This lets safe mode work on go file:

 

#!/bin/bash
# Start the Management Utility
/usr/local/sbin/emhttp &

# If "unraidsafemode" present on kernel command line, skip all add-ons
if grep -wq unraidsafemode /proc/cmdline ; then exit ; fi

#Other code if not in safe mode follows:

#put other code here

Link to comment
  • 4 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.