Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: del on September 24, 2006, 04:00:28 AM
-
Hi All,
Can someone confirm that the procedure for enabling nut in v7 is:
/sbin/e-smith/config setprop nut status enabled
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot
or could it be:
sbin/e-smith/db/configuration setprop nut status enabled
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot
I don't remeber since I did it on v6 :cry:
Thanks in advanced
Del
-
Here are a few options that are available on SME version 7:
/sbin/e-smith/config setprop nut status enabled
config setprop nut status enabled
db configuration setprop nut status enabled
and
signal-event xxxxx
Michael
-
mdo
/sbin/e-smith/config setprop nut status enabled
config setprop nut status enabled
db configuration setprop nut status enabled
There is no difference between any of those, they do the same thing, (loosley speaking) they are shortcuts to each other.
-
Thanks guys, just wasn't sure, my SME6 had been running so long that I had forgot exactly what I did :oops:
Regards,
Del
-
And for completeness...
Setting up device/model and setting enabled.
config setprop nut Device /dev/ttyS1
config setprop nut Model apcsmart
config setprop nut status enabled
Show nut is correctly configured with our above settings.
config show nut
nut=service
Device=/dev/ttyS1
Model=apcsmart
status=enabled
Then don't forget to expand the relevent templates...
expand-template /etc/sysconfig/ups
expand-template /etc/ups/ups.conf
expand-template /etc/ups/upssched.conf
expand-template /etc/ups/upsmon.conf
expand-template /etc/ups/upsd.users
expand-template /etc/ups/upsd.conf
And say hello to the ups :lol:
upsc UPS@localhost
-
Hi Byte,
I never did any of those in SME6, I am using a USB UPS and it shutdown my server correctly, so when I come to do this on SME7 (tomorrow) will I need those commands as ttyS1 is a serial port? Thanks or your help.
Regards,
Del
-
That's right you wont have to do the Device bit as you have a USB UPS.