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

Bug 540042

Summary: sys-cluster/heartbeat - /etc/init.d/heartbeat uses deprecated opts variable
Product: Gentoo Linux Reporter: Jeroen Roovers (RETIRED) <jer>
Component: [OLD] ServerAssignee: Gentoo Cluster Team <cluster>
Status: RESOLVED OBSOLETE    
Severity: normal CC: tobias.pal, treecleaner
Priority: Normal Keywords: PATCH, PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 381895    
Deadline: 2020-10-09   

Description Jeroen Roovers (RETIRED) gentoo-dev 2015-02-14 10:29:10 UTC
/etc/init.d/heartbeat: Use of the opts variable is deprecated and will be removed in the future.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-14 10:31:26 UTC
--- a/files/heartbeat-init
+++ b/files/heartbeat-init
@@ -11,7 +11,7 @@
        need net
 }
 
-opts="start stop status reload restart"
+extra_commands="start stop status reload restart"
 
 CheckBool() {
        case `echo "$1" | tr A-Z a-z` in
Comment 2 Paul Tobias 2016-03-18 04:22:48 UTC
Hmm, I think the correct fix would be this:

--- a/sys-cluster/heartbeat/files/heartbeat-init
+++ b/sys-cluster/heartbeat/files/heartbeat-init
@@ -11,7 +11,7 @@ depend() {
 	need net
 }
 
-opts="start stop status reload restart"
+extra_started_commands="reload"
 
 CheckBool() {
 	case `echo "$1" | tr A-Z a-z` in
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-10-09 07:36:48 UTC
Package removed.