LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   shutdown works, but /lib/systemd/system/shutdown.target does not. (https://www.linuxquestions.org/questions/debian-26/shutdown-works-but-lib-systemd-system-shutdown-target-does-not-4175513670/)

kaz2100 08-06-2014 12:39 AM

shutdown works, but /lib/systemd/system/shutdown.target does not.
 
Hya,

System
Debian Jessie, amd64. (Intel DJ41MJ, Core 2 duo E8400)

Set up
I want to use ctrl-alt-del for power off.

I followed this thread.

Code:

m# ls -l /etc/systemd/system/ctrl-alt-del.target
lrwxrwxrwx 1 root root 35 Aug  6 04:21 ctrl-alt-del.target -> /lib/systemd/system/shutdown.target


Problem
When ctrl-alt-del is pressed, console says that many processed are terminated and that "reached shutdown target" and nothing happens. (power stays on)

If shutdown command is issued with -h, it shuts down.

System is up to date as of 6/Aug/2014 6am UTC.


I have several other Debian Jessie penguins, which work fine so far.

I appreciate any input.

cheers

ReaperX7 08-06-2014 01:08 AM

Jessie is still in the testing phases so stuff is usually not going to work correctly unfortunately.

Systemd is also still being worked into the system and it's bound to have problems as well. You should probably check the Ctrl-alt-del.target file and see if it has the proper reboot handling triggers are being used.

unSpawn 08-06-2014 01:19 AM

Quote:

Originally Posted by kaz2100 (Post 5215988)
(..) I want to use ctrl-alt-del for power off.

The post tells you to link ctrl-alt-del.target to poweroff.target? You linked it to shutdown.target? Subtle difference: shutdown service starts the shutdown daemon while poweroff eventually does a 'systemctl --force poweroff'.

kaz2100 08-06-2014 03:28 AM

Quote:

Originally Posted by unSpawn (Post 5216000)
The post tells you to link ctrl-alt-del.target to poweroff.target? You linked it to shutdown.target? Subtle difference: shutdown service starts the shutdown daemon while poweroff eventually does a 'systemctl --force poweroff'.

You are a star!

cheers


All times are GMT -5. The time now is 07:11 PM.