Hi,
I am new to unraid (bought pro key 3 days ago), and spent the last week reading wiki and hundreds threads I think I well understand the big picture.
I have one thing I would like to do. Run the mover script at shutdown. My unraid use is not 24/24. I only need it running from late afternoon to late evening. I read this thread. I understand the warnings, but still want to do it and the thread do not explain how to do it. I wanted to add the call to mover just before unraid stop like this in /usr/local/sbin/powerdown:
.....
trap "rm -f /var/run/powerdown.pid" EXIT HUP INT QUIT
#+++++++++++++++++++
/usr/local/sbin/mover
/etc/rc.d/rc.unRAID stop
# /sbin/poweroff
logger "Initiating Shutdown with ${1}"
/sbin/shutdown -t5 ${OPT} now
Is this the right line to insert the call?
Also as I understand how unraid works, I need to keep a copy of the modified script in home directory, then copy it over the existing one in the go script, is this correct?
thanks,
TB