emissary 1.3.23 → 1.3.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/etc/init.d/emissary +20 -20
  3. metadata +3 -2
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 3
4
- :patch: 23
4
+ :patch: 24
@@ -11,41 +11,41 @@ EMISSARY_EXECUTABLE=$(/bin/sh -l -c "ruby -rrubygems -e 'puts Gem.bindir'")/emis
11
11
 
12
12
  [ -f "${CONFIG_FILE}" ] || exit 0
13
13
 
14
- . /etc/rc.d/init.d/functions
14
+ start() {
15
+ # Start daemon.
16
+ echo -n "Starting emissary: "
17
+ ${EMISSARY_EXECUTABLE} -d --config-file ${CONFIG_FILE} start
18
+ [ "$?" -eq 0 ] && echo "ok" || echo "failed"
19
+ }
15
20
 
16
- if [ -f /etc/sysconfig/emissary ]; then
17
- . /etc/sysconfig/emissary
18
- fi
21
+ stop() {
22
+ # Stop daemon.
23
+ echo -n "Shutting down emissary: "
24
+ /usr/bin/pkill -f '(emop_node|emissary-master)'
25
+ [ "$?" -eq 0 ] && echo "ok" || echo "failed"
26
+ }
19
27
 
20
28
  # See how we were called.
21
29
  case "$1" in
22
30
  start)
23
- # Start daemon.
24
- echo -n "Starting emissary: "
25
- daemon ${EMISSARY_EXECUTABLE} -d --config-file ${CONFIG_FILE} start
26
- touch /var/lock/subsys/emissary
27
- echo
31
+ start;
28
32
  ;;
29
33
  stop)
30
- # Stop daemon.
31
- echo -n "Shutting down emissary: "
32
- daemon ${EMISSARY_EXECUTABLE} --config-file ${CONFIG_FILE} stop
33
- echo
34
- rm -f /var/lock/subsys/emissary
34
+ stop;
35
35
  ;;
36
36
  restart)
37
- daemon ${EMISSARY_EXECUTABLE} --config-file ${CONFIG_FILE} restart
37
+ echo 'Restarting emissary: '
38
+ stop;
39
+ start;
38
40
  ;;
39
41
  status)
40
- daemon ${EMISSARY_EXECUTABLE} --config-file ${CONFIG_FILE} status
42
+ ${EMISSARY_EXECUTABLE} --config-file ${CONFIG_FILE} status
41
43
  ;;
42
- reconfig)
43
- daemon ${EMISSARY_EXECUTABLE} --config-file ${CONFIG_FILE} reconfig
44
- ;;
45
44
  *)
46
- echo "Usage: emissary {start|stop|restart|status|reconfig}"
45
+ echo "Usage: emissary {start|stop|restart|status}"
47
46
  exit 1
48
47
  ;;
49
48
  esac
50
49
 
51
50
  exit 0
51
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emissary
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.23
4
+ version: 1.3.24
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-05 00:00:00.000000000 Z
12
+ date: 2013-03-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: daemons
@@ -248,3 +248,4 @@ signing_key:
248
248
  specification_version: 3
249
249
  summary: EventMachine/AMQP based event handling client
250
250
  test_files: []
251
+ has_rdoc: