Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540042 - sys-cluster/heartbeat - /etc/init.d/heartbeat uses deprecated opts variable
Summary: sys-cluster/heartbeat - /etc/init.d/heartbeat uses deprecated opts variable
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: init.d-depr-opts
  Show dependency tree
 
Reported: 2015-02-14 10:29 UTC by Jeroen Roovers
Modified: 2016-03-18 04:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers 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 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