shinedou

Members
  • Posts

    2
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed

shinedou's Achievements

Noob

Noob (1/14)

0

Reputation

  1. That's too bad. Any ideas how i can get this inotify script to auto run on boot with or without your userscript plugin? Well I ended up adding it to the go file and all seems to be working. Also, Im not sure I understand this last bit of your response. "to get it to start" meaning to get the server to start properly or the script to start properly I can change the name of the script file. I assume you mean to get the server to start correctly since changing the name will break the userscript plugin from starting it.
  2. Great plugin but now I am running into problems with a new script I have created. Keep in mind I don't really know what I am doing. The script's purpose is to start inotifywait and watch a folder and when the correct files are found call another script to deal with it. When I run the script either by manually clicking the "run in background" button or if I run the script from terminal it runs perfectly. However if I set the script to run on array start and do a reboot of unraid the following happens. - unraid boots but the webgui does not start and none of my shares are mapped. - I can see and access the flash share - I can see my share created by the unassigned device plugin but I can not access it. - I can ping and ssh into the server In order to get the server to start correctly I have to go into the user.scripts schedule.json file and change the schedule for the script to disabled and reboot. Script is below. Any ideas? #!/bin/bash #backgroundOnly=true #arrayStarted=true #grabdir=/mnt/disks/appshare/apps/downloads/seedbox/tmp_process/grab watchdir="/mnt/disks/appshare/apps/downloads/seedbox/tmp_process/start/" tvlftp=/mnt/disks/appshare/apps/scripts/son_rad_arr_scripts/tv_lftp.sh movielftp=/mnt/disks/appshare/apps/scripts/son_rad_arr_scripts/movie_lftp.sh logdir="/mnt/disks/appshare/apps/scripts/son_rad_arr_scripts/logs" dt=$(date '+%m/%d/%Y %H:%M:%S'); echo "$dt" inotifywait started >> $logdir/torrent_notify.log inotifywait -m -e moved_to --format %f $watchdir | while read f; do echo "$f"; if [[ $f == *.tvstart ]] then "$tvlftp" $f elif [[ $f == *.moviestart ]] then "$movielftp" $f fi done