Bug 165953 - pm-shutdown and pm-restart missing
pm-shutdown and pm-restart missing
Product: Fedora
Classification: Fedora
Component: pm-utils (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Phil Knirsch
Depends On:
Blocks: FC5Target
  Show dependency treegraph
Reported: 2005-08-15 05:47 EDT by Richard Hughes
Modified: 2015-03-04 20:15 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-02-24 05:08:40 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Richard Hughes 2005-08-15 05:47:46 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050720 Fedora/1.0.6-1.1.fc4 Firefox/1.0.6

Description of problem:
I see the new scripts pm-hibernate and pm-suspend are present. This is great as it supplies the low level hooks for HAL/GNOME Power Manager/Power Manager to execute a generic suspend/hibernate.

For completeness, wouldn't the two scripts pm-restart and pm-shutdown also have merit? In this way the "/sbin/shutdown -r now" or "halt ..." doesn't have to be hardcoded in HAL or PowerManager - it can just treat them the same as another power-event.

In this way gentoo, debian, ubuntu etc can supply thier own pm-utils package just with these scripts in - which will give the user a common commandset - even if the scripts are radiacally different.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. type pm-reboot
2. nothing :-)

Actual Results:  Nothing

Expected Results:  /sbin/shutdown -r now should have executed, along with any clever logic too.

Additional info:
Comment 1 Bill Nottingham 2005-08-19 03:01:45 EDT
Why would shutdown or reboot have anything to do with power management?
Comment 2 Richard Hughes 2005-08-19 04:11:09 EDT
PowerManagement is surely restarting a machine, and shutting down the power? 

Also having these scripts here would lets use use HAL to do an architecture
neutral, distro neutral Shutdown() and Restart() dbus command without any clever
path-foo or distro-tweak-foo. Also having these scripts here would allow us to
put any future cleverness like bootdown-splashscreen or radeontool blanking if
we needed to.

Comment 3 Bill Nottingham 2005-08-19 17:25:13 EDT
Hm, ok. I suspect they'd just be symlinks to the already-existing consolehelper
symlinks for reboot/shutdown.
Comment 4 Phil Knirsch 2006-02-24 05:08:40 EST
I'll be putting in some symlinks for now so we have the basis for pm-shutdown
and pm-restart.

Will be in next build.

Read ya, Phil

Note You need to log in before you can comment on or make changes to this bug.