Displaying 3 results from an estimated 3 matches for "notify_shutdown".
2016 Jul 11
0
Proposal for technique to stop a timer at any moment
...*/
#define NOTIFY_LOWBATT 2 /* UPS went to low battery */
-#define NOTIFY_FSD 3 /* Master upsmon set FSD flag */
+#define NOTIFY_FSD 3 /* Master upsmon set FSD flag */
#define NOTIFY_COMMOK 4 /* Communication established */
#define NOTIFY_COMMBAD 5 /* Communication lost */
#define NOTIFY_SHUTDOWN 6 /* System shutdown in progress */
#define NOTIFY_REPLBATT 7 /* UPS battery needs to be replaced */
#define NOTIFY_NOCOMM 8 /* UPS hasn't been contacted in awhile */
#define NOTIFY_NOPARENT 9 /* privileged parent process died */
+#define NOTIFY_SIGUSR1 10 /* Server received SIGUSR1 RP...
2006 Aug 17
1
powercom issues
And something else, that previously eluded from my thoughts:my "notifyme" script,i.e the script that is executed at an ups.status="OB" event, is:
echo `date` >> /root/upsLog
echo " No power, shutting down the system!" >> /root/upsLog
sleep 30
control=`/usr/local/ups/bin/upsc Inform@localhost ups.status`
if [ $control != OL ]
then
2017 Jan 09
2
NUT Client shuts down when performing runtime calibration on APC UPS
...every 300 seconds unless you
# change the interval with this directive.
NOCOMMWARNTIME 300
# --------------------------------------------------------------------------
# FINALDELAY - last sleep interval before shutting down the system
#
# On a master, upsmon will wait this long after sending the NOTIFY_SHUTDOWN
# before executing your SHUTDOWNCMD. If you need to do something in between
# those events, increase this number. Remember, at this point your UPS is
# almost depleted, so don't make this too high.
#
# Alternatively, you can set this very low so you don't wait around when
# it's time...