Enhanced Support Facility 2.6 User's Guide
Contents Index PreviousNext

Part 1 SCF Driver Features> Chapter 1 Main Cabinet

1.5 Processing when UPS is connected, and power failure occurred

When UPS is connected to the system and the power failure occurred, SCF driver executes the shutdown process.
At this time, SCF driver makes the work file to distinguish the shutdown due to the power failure, and starts shutdown.

SCF driver does not make the work file when the shutdown(1M) command is executed or the POWER Switch presses or the shutdown processing due to abnormality.

The directory and the work file name from which the work file is made are as follows.

/var/opt/FJSVhwr/UPS2.cau


The application can add special processing by the power failure by the presence of this work file.

For example, the application prepares termination script (example of filename: K00Action), and it is stored to /etc/rc0.d directory.
Make the termination script so that special processing is executed when the work file exists.

The example of the termination script is shown below.

#!/bin/sh
#
# User Action Script for UPS AC-Fail Shutdown
#
case $1 in
'stop')
if [ -f /var/opt/FJSVhwr/UPS2.cau ]; then
Special Processing
fi
;;
*)
;;
esac
exit 0

Refer to init.d(4) of the Sun document for details of the termination script.

This work file is deleted by the next system booting.

Notes


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2005