Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 389371

Summary: media-tv/gentoo-vdr-scripts: add custom shutdown command
Product: Gentoo Linux Reporter: Lucian Muresan <lucianm>
Component: Current packagesAssignee: Gentoo VDR Project <vdr>
Status: RESOLVED FIXED    
Severity: enhancement CC: media-tv
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: customizable shutdown command

Description Lucian Muresan 2011-11-02 20:47:51 UTC
It would be useful if the user could easily provide its own shutdown command used instead of "halt" by the gentoo-vdr-scripts, preserving at the same time all the magic that these scripts do on shutdown (i.E. without replacing the shutdown scripts entirely). This would allow to use hibernate, or hibernate-ram from sys-power/hibernate-script for example, or something from pm-utils or anyhting else, left up to the user. No dependency on any package should be introduced by this, the user should know (s)he has to take care of this.

Reproducible: Always
Comment 1 Lucian Muresan 2011-11-02 20:57:51 UTC
Created attachment 291553 [details, diff]
customizable shutdown command

Adds SHUTDOWN_CUSTOM_CMD variable to /etc/conf.d/vdr.shutdown, not initialized. If it is initialized to a command like hibernate, hibernate-ram (from sys-power/hibernate-script for example) or something else which will suspend to RAM (STR, S3) or to disk (STD, S4) instead of powering off the machine, achieving faster startup on resuming, this command will be used when issuing powerdown from VDR, instead of "halt".

Of course, the user then has to make sure when setting up this suspend/resume scenario, to stop the vdr service and unload the dvb modules before suspending, and load the modules and restart vdr when resuming. When using sys-power/hibernate-script, /etc/hibernate/common.conf comes handy for achieving this.
Comment 2 Joerg Bornkessel (RETIRED) gentoo-dev 2012-02-08 00:36:11 UTC
added to gentoo-vdr-scripts-0.4.10

this version needs >=vdr-1.7.23

anyway, we added several changes to this version, one of this is needed for vdr-1.7.23