aleksvolgin
Advanced Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Цитата: И для тех умников, NUT везде одинаковый без разницы какой ОС использовать, файлы upsmon.conf ups.conf upsd.conf upsd.users и другие настраиваются одинаково, только пути к NUT папки могу отличаться и все все настройки идентичны | Ага. А это спецом для "умников": Цитата: upsmon.conf # -------------------------------------------------------------------------- # SHUTDOWNCMD "<command>" # # upsmon runs this command when the system needs to be brought down. # # This should work just about everywhere ... if it doesn't, well, change it. # # For Windows setup use something like: # SHUTDOWNCMD "C:\\WINDOWS\\system32\\shutdown.exe -s -t 0" # If you have command line using space character you have to add double quote to them, like this: # SHUTDOWNCMD "\"C:\\Program Files\\some command.bat\" -first_arg -second_arg" # Or use the old DOS 8.3 file name, like this: # SHUTDOWNCMD "C:\\PROGRA~1\\SOMECO~1.bat -first_arg -second_arg" SHUTDOWNCMD "/sbin/shutdown -h +0" # -------------------------------------------------------------------------- # POWERDOWNFLAG - Flag file for forcing UPS shutdown on the master system # # upsmon will create a file with this name in master mode when it's time # to shut down the load. You should check for this file's existence in # your shutdown scripts and run 'upsdrvctl shutdown' if it exists. # # For Windows setup use something like: # POWERDOWNFLAG "C:\\killpower" # # See the shutdown.txt file in the docs subdirectory for more information. POWERDOWNFLAG /usr/local/ups/etc/killpower # -------------------------------------------------------------------------- |
|