rha 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README +5 -0
  2. data/lib/rha/daemon.rb +1 -1
  3. metadata +3 -3
data/README CHANGED
@@ -47,6 +47,11 @@ Usage:
47
47
  authkeys_file.close
48
48
  haresources_file.close
49
49
 
50
+ heartbeat = RhaDaemon.new
51
+ heartbeat.path_to_heartbeat = "/etc/init.d/heartbeat"
52
+ heartbeat.debug_level = "3"
53
+ heartbeat.reload
54
+
50
55
  ha.cf:
51
56
 
52
57
  use_logd on
data/lib/rha/daemon.rb CHANGED
@@ -67,7 +67,7 @@
67
67
  #
68
68
  # Kill (stop) heartbeat.
69
69
  #
70
- def reload
70
+ def stop
71
71
  tmp = Tempfile.new('tmp')
72
72
  command = option_string() + "-k " + " 2> " + tmp.path
73
73
  success = system(command)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rha
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joel Bryan Juliano