commit | author | age
|
fb87dc
|
1 |
--- pcs-0.9.159/pcsd/bootstrap.rb.orig 2017-09-23 22:12:58.081950693 +0000 |
G |
2 |
+++ pcs-0.9.159/pcsd/bootstrap.rb 2017-09-23 22:14:34.870954741 +0000 |
|
3 |
@@ -5,6 +5,9 @@ |
|
4 |
|
|
5 |
require 'settings.rb' |
|
6 |
|
|
7 |
+def is_solaris() |
|
8 |
+ return (`uname -s`.chomp.eql? "SunOS") |
|
9 |
+end |
|
10 |
|
|
11 |
def is_rhel6() |
|
12 |
# Checking corosync version works in most cases and supports non-rhel |
edb7fe
|
13 |
@@ -46,6 +46,7 @@ |
GM |
14 |
PCS_VERSION = '0.10.1' |
fb87dc
|
15 |
# unique instance signature, allows detection of dameon restarts |
G |
16 |
COROSYNC = COROSYNC_BINARIES + "corosync" |
|
17 |
+ISSOLARIS = is_solaris |
|
18 |
ISSYSTEMCTL = is_systemctl |
edb7fe
|
19 |
COROSYNC_CMAPCTL = COROSYNC_BINARIES + "corosync-cmapctl" |
GM |
20 |
COROSYNC_QUORUMTOOL = COROSYNC_BINARIES + "corosync-quorumtool" |