On 03/15/2017 05:12 PM, zamek42 wrote: > Probaltam az upssched.conf-ban: > > AT ONBATT apc@localhost EXECUTE shutdown > > ez a doksi szerint /bin/upssched-cmd-t hivna meg shutdown parameterrel. > > Oda ezt tettem: > case $1 in > upsgone) > logger -t upssched-cmd "The UPS has been gone for awhile" > ;; > shutdown) > logger -t upssched-cmd "System shutdown started" > shutdown -h now > ;; > *) > logger -t upssched-cmd "Unrecognized command: $1" > ;; > esac > > A logban viszont csak ez jelenik meg, ha kihuzom a csatlakozot: > > Mar 15 17:07:01 organ upsmon[543]: UPS apc@localhost on battery > Mar 15 17:07:11 organ upsmon[543]: UPS apc@localhost on line power > > Szoval csoborbol vodorbe?
Ha nem akarsz naphosszat szórakozni vele, akkor strace. g _________________________________________________ linux lista - linux@mlf.linux.rulez.org http://mlf.linux.rulez.org/mailman/listinfo/linux