Hallo zusammen,
habe folgendes Problem:
Ich möchte vom Client aus den Server runterfahren können (mittels ssh und als befehl auf ne taste - das ist kein Problem)
Dabei soll der Server natürlich ggf. einen Wakeup-Timer ins BIOS schreiben. Und daran scheiterts...
Welches Shutdown-Skript muß ich denn angeben? Ich hab probiert: vdr-shutdown, da sagt das logfile am server:
Code
Sep 23 11:44:10 htpc vdr-shutdown: executing /usr/share/vdr/shutdown-hooks/S90.nvram-wakeup as shell script
Sep 23 11:44:10 htpc vdr-nvram-wakeup: /usr/sbin/nvram-wakeup -ls --directisa
Sep 23 11:44:10 htpc nvram-wakeup[12586]: "--directisa" is not a number
Sep 23 11:44:10 htpc nvram-wakeup[12586]:
Sep 23 11:44:10 htpc nvram-wakeup[12586]: Usage: nvram-wakeup [OPTIONS]
Sep 23 11:44:10 htpc nvram-wakeup[12586]: -s, --settime Set the given wakeup date/time (given as a time_t value).
Sep 23 11:44:10 htpc nvram-wakeup[12586]: -d, --disable Disable WakeUp. Equivalent to --settime=0.
Sep 23 11:44:10 htpc nvram-wakeup[12586]: -C, --configfile Read board configuration from specified configuration file.
Sep 23 11:44:10 htpc nvram-wakeup[12586]: -I, --iwname Specify the IW (infowriter) name.
Sep 23 11:44:10 htpc nvram-wakeup[12586]: -A, --directisa Use direct ISA access to read/write nvram instead of /dev/nvram.
Sep 23 11:44:10 htpc nvram-wakeup[12586]: -N, --nowrite Don't write any values (in /dev/nvram or /dev/rtc). For testing.
Sep 23 11:44:10 htpc nvram-wakeup[12586]: -D, --debug Enable printing debug messages.
Sep 23 11:44:10 htpc nvram-wakeup[12586]: -l, --syslog Log all output via syslogd instead of stdout/stderr.
Sep 23 11:44:10 htpc nvram-wakeup[12586]: -w, --wakeupbefore Start that many minutes before the wakeuptime (default is 5).
Sep 23 11:44:10 htpc nvram-wakeup[12586]: -v, --version Print version information.
Sep 23 11:44:10 htpc nvram-wakeup[12586]: -h, --help Print this message (always to stderr, regardless of --syslog).
Sep 23 11:44:10 htpc nvram-wakeup[12586]:
Sep 23 11:44:10 htpc nvram-wakeup[12586]: All specified wakeup times are times at which the PC should be up and running.
Sep 23 11:44:10 htpc nvram-wakeup[12586]:
Sep 23 11:44:10 htpc vdr-nvram-wakeup: nvram-wakeup: could not set time, shutdown will be aborted
Sep 23 11:44:10 htpc vdr-shutdown: Shutdown aborted by /usr/share/vdr/shutdown-hooks/S90.nvram-wakeup with exitcode 1
Sep 23 11:44:12 htpc vdr: [2590] connect from 127.0.0.1, port 39371 - accepted
Sep 23 11:44:12 htpc vdr: [2590] SVDRP message: 'Shutdown abgebrochen / Shutdown aborted!'
Sep 23 11:44:12 htpc vdr: [2590] info: Shutdown abgebrochen / Shutdown aborted!
Alles anzeigen
Mit der Powertaste auf der FB vom Server funktionierts problemlos, dabei wird allerdings vdr-shutdown.wrapper aufgerufen.
Also hab ichs mit
ssh root@server "/usr/lib/vdr/vdr-shutdown.wrapper" versucht. Gleiches Ergebnis im logfile.
Wahrscheinlich muß ich dem wrapper-skript die Timerdaten mitgeben, aber wie?