Ok, I got it working now. I had to install fun_plug, then install the nut package, and then made a fun_plug start-up script that copies 2 files: upsmon (from /ffp/sbin) to the ramdrive space (/sbin/), and upsmon.conf (from /ffp/etc/) to the ramdrive space (/etc/), then it runs from there. Then I just made the upsmon.conf file point to the right driver that the DNS-323 already loads out of the box, and upsmon DOES now finally shutdown unit.
But upon later research, I found that the shutdown command was causing an unsafe shutdown, so I installed the cleanboot fun_plug which now stops all of the processes that run off of the HDDs, then umounts the drives and then proceeds to shutdown the unit safely. Before I did this, the stock process that upsmon runs is "shutdown -h +0" which is invalid in the dlink firmware, so I had originally changed it to /sbin/poweroff which seemed to halt, but not power down unit. And it wasn't safe halting. So cleanboot installs new binaries called "shutdown", "halt", and "reboot" which do safe shutdown.
So now that this is working, I have now found that dmesg is telling me I need to run e2fsck to check filesystem of the HDDs, so to do this, I need to umount the /dev/md0 drive, so I have modified my telnet start-up script to copy it's files to the ramdrive first and running the daemon from there, so it is not dependent on the HDD, and I've shut off any other daemons that were running off the HDDs, but for some reason, I still CANNOT run umount -f /dev/md0. I just get the error: "Cannot forcibly unmount /dev/md0, Device or resource busy".
So if I can figure out how to run fsck'r, and get the errors to go away, then I have a nice system here, which is capable of shutting itself down after it depletes a UPS. It shuts down on "LOW BATT" which happens around 10% UPS battery power.
I'm almost tempted to just install the new beta version which supposedly has filesystem checker built-in, and I've made all of the 3 fun_plugs I use run off of the ramdisk space, and nothing is dependent on the HDDs so maybe the beta 1.08 can figure out how to unmount that HDD, since I can't. I'm still a Linux noob I guess.
By the way, this string has seemed like a pretty one sided conversation to me. People are pretty talkative here
