[Nut-upsuser] FreeBSD rc.d scripts or shutdown howto?
gruvin at gmail.com
Tue Aug 21 02:03:48 UTC 2007
After an hour of Googling and just not "getting" it, I figured I'd
call upon the list once more...
I am starting upsd, upsmon, etc in my FreeBSD's /etc/rc.local, because
it's easy. BUT... rc.shutdown seems kill off all those processes prior
to excuting my upsdrvctl shutdown command, thereby preventing any ups
communications and yup, the power don't get killed.
[code to run all rc.d stop script here]
# Insert other shutdown procedures here
if [ -f /etc/killpower ]; then
echo "Killing the power, bye!"
/usr/local/ups/bin/upsdrvctl shutdown <<< oops, upsd is already dead
rc.local snippet, for what it's worth:
The distro directory scripts/FreeBSD, where such scripts used to be as
I've read in lots of places, well, it doesn't seem to exist in the
v2.x.x distributions of nut anyway.
Once again -- any help getting this last little bit working would be
More information about the Nut-upsuser