Sending WOL to OMV server on start/reboot
Added by Spencer Cummings over 5 years ago
Hi all,
I have a Pi running TVH, and an NFS mount to an OMV server to hold the recordings.
I've noticed that if I restart the Pi when OMV server isn't up, TVH will write recordings locally into the mount folder...and all the existing recordings, (on the OMV file share), get moved to 'Removed Recordings'.
If I reboot the Pi when the OMV server is running all is well, new recordings go to the OMV share and the existing recordings are back where they belong in 'Finished Recordings'.
I figure that my best bet is to run the wol script, which is just a simple 'wakeonlan' command using the MAC of the OMV server, on startup/reboot of the Pi...mostly to save me having to remember to do things in the correct order!
However, searching on how to do it gives me multiple options...rc.local, .bashrc, init.d tab, systemd, and crontab.
Far too many choices for a noob like me
Looking for some advice on the right way to add the script...or am I missing as trick in the config of the nfs mount I have in /etc/fstab?
This is currently:
IP:/PVR mnr/PVR nfs defaults 0 0
Thanks in advance!
Replies (1)
RE: Sending WOL to OMV server on start/reboot - Added by Spencer Cummings over 5 years ago
Sorry, that should be:
IP:/PVR mnt/PVR nfs defaults 0 0
Anyone?
Thanks!