Superuser

Autor Thema: Wie Shutdown DIREKT von der Login Seite aus?  (Gelesen 6473 mal)

Offline escimo

  • Sobl Guru
  • *****
  • Beiträge: 1674
  • SPARCstation 2
    • Youtube-Kanal opensparcbox.org
Re: Wie Shutdown DIREKT von der Login Seite aus?
« Antwort #15 am: 14. April 2008, 18:09:59 »
P.S. Das Solaris-Kommando poweroff als Synonym für halt ist schon ziemlich alt, auch auf SPARC.
Zitat
$ whatis poweroff
poweroff        halt (1m)       - stop the processor
$ which poweroff
/usr/sbin/poweroff
$ uname -rsp
SunOS 5.6 sparc

Das Kommando poweroff existiert wohl schon seit Solaris 2.4, zumindest laut der Suche über <docs.sun.com>.

sonnenblen.de - Das unabhängige Sun User Forum

Re: Wie Shutdown DIREKT von der Login Seite aus?
« Antwort #15 am: 14. April 2008, 18:09:59 »

Offline Drusus

  • Sobl Master
  • ****
  • Beiträge: 424
  • Intentionally left blank
Re: Wie Shutdown DIREKT von der Login Seite aus?
« Antwort #16 am: 14. April 2008, 21:01:29 »
Moin,

habe gerade mal meinen vorherigen Tip (GDM statt CDE Login-Manager zu nutzen) getestet. Funktioniert gleich "out of the box", d.h. auch ohne weitere Konfigurationsaenderungen ist dann bei der Loginmaske rechts das Feld "Actions" zu sehen, wo sich dann ein "Suspend computer" finden laesst.

Ergo:
# svcadm disable cde-login
# svcadm enable gdm2-login

Tschau,
  Drusus.

p.s.: Mein Test lief zwar unter Solaris 10, aber das Ergebnis duerfte unter Solaris Express hoffentlich das gleiche sein...

Offline dominik

  • Sobl Bachelor
  • ***
  • Beiträge: 182
  • Me, myself & I
    • Meine Heimseite
Re: Wie Shutdown DIREKT von der Login Seite aus?
« Antwort #17 am: 15. April 2008, 08:42:02 »
Wieso so kompliziert beim Runterfahren? Ich nehm immer 'uadmin 2 0'

'poweroff' bzw 'halt' sind definitiv nicht die richtigen Kommandos um ein System herunterzufahren. Ich verweise da auf die entsprechende Manpage:

Zitat
NOTES
     The halt and poweroff  utilities  do  not  cleanly  shutdown
     smf(5) services. Execute the scripts in /etc/rcnum.d or exe-
     cute shutdown actions in inittab(4). To  ensure  a  complete
     shutdown of system services, use shutdown(1M) or init(1M) to
     reboot a Solaris system.

Gruss
Dominik

PS:
Irgendwo in diesem Posting ist Ironie versteckt...

Offline WDZaphod

  • Sobl Junior
  • **
  • Beiträge: 77
Re: Wie Shutdown DIREKT von der Login Seite aus?
« Antwort #18 am: 16. April 2008, 11:20:27 »
Hm, meine Kiste schaltet sich nur nach einem poweroff ab, bei "halt" fährt sie runter, bleibt aber an. Was tun?

Offline dominik

  • Sobl Bachelor
  • ***
  • Beiträge: 182
  • Me, myself & I
    • Meine Heimseite
Re: Wie Shutdown DIREKT von der Login Seite aus?
« Antwort #19 am: 16. April 2008, 12:02:10 »
init 5

Zitat
System Administration Commands                           halt(1M)

NAME
     halt, poweroff - stop the processor

SYNOPSIS
     /usr/sbin/halt [-dlnqy]

     /usr/sbin/poweroff [-dlnqy]

DESCRIPTION
     The halt and poweroff utilities write any  pending  informa-
     tion  to the disks and then stop the processor. The poweroff
     utility has the machine remove power, if possible.

Zitat
NOTES
     The halt and poweroff  utilities  do  not  cleanly  shutdown
     smf(5) services. Execute the scripts in /etc/rcnum.d or exe-
     cute shutdown actions in inittab(4). To  ensure  a  complete
     shutdown of system services, use shutdown(1M) or init(1M) to
     reboot a Solaris system.

Gruss
Dominik