Bug 165953

Summary: pm-shutdown and pm-restart missing
Product: [Fedora] Fedora Reporter: Richard Hughes <richard>
Component: pm-utilsAssignee: Phil Knirsch <pknirsch>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-24 10:08:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 150221    

Description Richard Hughes 2005-08-15 09:47:46 UTC
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):
pm-utils-0.04-1

How reproducible:
Always

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 07:01:45 UTC
Why would shutdown or reboot have anything to do with power management?

Comment 2 Richard Hughes 2005-08-19 08:11:09 UTC
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.

Comments?

Comment 3 Bill Nottingham 2005-08-19 21:25:13 UTC
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 10:08:40 UTC
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