Portál AbcLinuxu, 6. května 2025 16:40
/etc/init.d/xendomains
.
#! /bin/sh # # This script should be called by upssched via the CMDSCRIPT directive. # # Here is a quick example to show how to handle a bunch of possible # timer names with the help of the case structure. # # This script may be replaced with another program without harm. # # The first argument passed to your CMDSCRIPT is the name of the timer # from your AT lines. #case $1 in # upsgone) # logger -t upssched-cmd "The UPS has been gone for awhile" # ;; # *) # logger -t upssched-cmd "Unrecognized command: $1" # ;; #esac case $1 in onbatt1) logger -t upssched-cmd "The UPS has been on battery for awhile" # logger -t upssched-cmd "The UPS has been on battery for a while, logout right now!" ;; earlyshutdown) logger -t upssched-cmd "UPS on battery too long, forced shutdown" echo nazdar > /cesta /usr/sbin/upsmon -c fsd ;; *) logger -t upssched-cmd "ERROR!! $0 doesn't support $1" ;; esac
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.