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: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Deadline: 2020-10-09
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords: PATCH, PMASKED
Depends on:
Blocks: init.d-depr-opts
  Show dependency tree
 
Reported: 2015-02-14 10:29 UTC by Jeroen Roovers (RETIRED)
Modified: 2020-10-09 07:36 UTC (History)
2 users (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 (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.