PDA

View Full Version : Shotdown via power button on Login Screen



henPiters
10-Mar-2013, 19:38
Hi everyone,

i want to shutdown my server when i press the power button, also
if the loginscreen is shown.

If a user is logged in, it works (but have to wait for 60sec before shutdown starts).
Is there any way to shutdown on press when i am at the login screen?

(I have no extra monitor for the server and at the moment i am doing shutdown
via Remote which works but therefore i always need a connected client).

Does anyone have an idea what i can do?

KBOYLE
11-Mar-2013, 01:28
henPiters wrote:

>
> Hi everyone,
>
> i want to shutdown my server when i press the power button, also
> if the loginscreen is shown.

That can be dangerous if others have physical access to the server.
/Anyone/ could shut it down!

>
> If a user is logged in, it works (but have to wait for 60sec before
> shutdown starts).
> Is there any way to shutdown on press when i am at the login screen?
>
> (I have no extra monitor for the server and at the moment i am doing
> shutdown
> via Remote which works but therefore i always need a connected
> client).
>
> Does anyone have an idea what i can do?


You don't always need a connected client, you just need access to a
computer that has SSH installed on it. If you use SSH (PuTTY if you do
it from a Windows Workstation) just login to your server and enter (as
root): shutdown -h now

If you have a monitor near your server that is used on another
computer, you could attach a KVM switch to the two machines and share
the keyboard, mouse, and monitor.

--
Kevin Boyle - Knowledge Partner
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...