then reset systemd daemon: systemctl daemon-reload
And lots of links to "how do I stop that sequence from rebooting my machine". But the above is for systemd enabled systems, which you may not have.
An alternative would be:
ctl-alt-f1 (go to a terminal) ctl-alt-del
I *think* if you put the above in your inittab as you describe, you'll get a shutdown instead of a reboot.
Out of curiousity, why are you running a GUI on a headless device?
Consulting Minister for Consultants, DNRC
I can please only one person per day. Today is not your day. Tomorrow
isn't looking good, either.
I am BOFH. Resistance is futile. Your network will be assimilated.
D
Dave Farrance
I've just revisited this, and found a solution, so I'll post it here for the record.
(I tend to run the Desktop on headless Pis because the desktop is easier to use when a monitor _is_ attached, and I don't always know in advance if I'll be plugging a given SD-card into a Pi without a monitor.)
edit /home/pi/.config/openbox/lxde-pi-rc.xml
find the line: lxtask
change it to: sudo halt
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.