oversip 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/debian/oversip.init CHANGED
@@ -91,6 +91,23 @@ check_homedir ()
91
91
  }
92
92
 
93
93
 
94
+ # Return values:
95
+ # - 3: oversip is not running.
96
+ # - 0: oversip is running.
97
+ # - 1: oversip is not running but PID file exists.
98
+ get_status() {
99
+ if [ ! -r "$PIDFILE" ]; then
100
+ return 3
101
+ fi
102
+ if read pid < "$PIDFILE" && ps -p "$pid" > /dev/null 2>&1; then
103
+ return 0
104
+ else
105
+ return 1
106
+ fi
107
+ }
108
+
109
+
110
+ # TODO: mirar get_status() en vez de esperar a que oversip pete si estaba ya corriendo...
94
111
  start() {
95
112
  start-stop-daemon --start --quiet --pidfile $PIDFILE --quiet \
96
113
  --exec $DAEMON -- $OPTIONS
@@ -172,18 +189,22 @@ case "$1" in
172
189
  ;;
173
190
 
174
191
  status)
175
- if [ ! -r "$PIDFILE" ]; then
176
- log_warning_msg "$DESC ($NAME) is not running."
177
- exit 3
178
- fi
179
- if read pid < "$PIDFILE" && ps -p "$pid" > /dev/null 2>&1; then
180
- log_begin_msg "$DESC ($NAME) is running."
181
- [ $UBUNTU_LOGGING -eq 0 ] && echo
182
- exit 0
183
- else
184
- log_warning_msg "$DESC ($NAME) is not running but PID file '$PIDFILE' exists."
185
- exit 1
186
- fi
192
+ get_status
193
+ case $? in
194
+ 3)
195
+ log_warning_msg "$DESC ($NAME) is not running."
196
+ exit 3
197
+ ;;
198
+ 0)
199
+ log_begin_msg "$DESC ($NAME) is running."
200
+ [ $UBUNTU_LOGGING -eq 0 ] && echo
201
+ exit 0
202
+ ;;
203
+ 1)
204
+ log_warning_msg "$DESC ($NAME) is not running but PID file '$PIDFILE' exists."
205
+ exit 1
206
+ ;;
207
+ esac
187
208
  ;;
188
209
 
189
210
  *)
data/debian/postinst CHANGED
@@ -5,7 +5,7 @@ set -e
5
5
 
6
6
  #DEBHELPER#
7
7
 
8
- OVERSIP_GEM_VERSION="~>1.0.0"
8
+ OVERSIP_GEM_VERSION="~>1.0.1"
9
9
 
10
10
  # summary of how this script can be called:
11
11
  # * <postinst> `configure' <most-recently-configured-version>
@@ -33,8 +33,9 @@ case "$1" in
33
33
  --home /var/run/oversip oversip || true
34
34
 
35
35
  # Install the Ruby gem.
36
- echo "installing 'oversip' Ruby Gem (version $OVERSIP_GEM_VERSION)..."
37
- gem1.9.1 install oversip --no-rdoc --no-ri --conservative -v $OVERSIP_GEM_VERSION
36
+ # TODO: ACTIVAR
37
+ #echo "installing 'oversip' Ruby Gem (version $OVERSIP_GEM_VERSION)..."
38
+ #gem1.9.1 install oversip --no-rdoc --no-ri -v $OVERSIP_GEM_VERSION
38
39
  ;;
39
40
 
40
41
  abort-upgrade|abort-remove|abort-deconfigure)
@@ -10,7 +10,7 @@ require "openssl"
10
10
 
11
11
  # Ruby external gems.
12
12
 
13
- gem "eventmachine-le", ">= 1.1.0"
13
+ gem "eventmachine-le", ">= 1.1.2"
14
14
  require "eventmachine-le"
15
15
  gem "iobuffer", ">= 1.1.2"
16
16
  require "iobuffer"
@@ -5,7 +5,7 @@ require "syslog"
5
5
 
6
6
  # Ruby external gems.
7
7
 
8
- gem "eventmachine-le", ">= 1.1.0"
8
+ gem "eventmachine-le", ">= 1.1.2"
9
9
  require "eventmachine-le"
10
10
  gem "em-posixmq", ">= 0.2.3"
11
11
  require "em-posixmq"
@@ -5,7 +5,7 @@ module OverSIP
5
5
  module Version
6
6
  MAJOR = 1
7
7
  MINOR = 0
8
- TINY = 0
8
+ TINY = 1
9
9
  end
10
10
 
11
11
  PROGRAM_NAME = "OverSIP"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oversip
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-12 00:00:00.000000000 Z
12
+ date: 2012-07-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine-le
16
- requirement: &18605540 !ruby/object:Gem::Requirement
16
+ requirement: &11745940 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.1.0
21
+ version: 1.1.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *18605540
24
+ version_requirements: *11745940
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: iobuffer
27
- requirement: &18605080 !ruby/object:Gem::Requirement
27
+ requirement: &11744480 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.1.2
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *18605080
35
+ version_requirements: *11744480
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: em-posixmq
38
- requirement: &18604620 !ruby/object:Gem::Requirement
38
+ requirement: &12616040 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.2.3
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *18604620
46
+ version_requirements: *12616040
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: em-udns
49
- requirement: &18604160 !ruby/object:Gem::Requirement
49
+ requirement: &12615400 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.3.6
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *18604160
57
+ version_requirements: *12615400
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: escape_utils
60
- requirement: &18603700 !ruby/object:Gem::Requirement
60
+ requirement: &12614940 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 0.2.4
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *18603700
68
+ version_requirements: *12614940
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: term-ansicolor
71
- requirement: &18603320 !ruby/object:Gem::Requirement
71
+ requirement: &12614500 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *18603320
79
+ version_requirements: *12614500
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: posix-spawn
82
- requirement: &18602860 !ruby/object:Gem::Requirement
82
+ requirement: &12613980 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *18602860
90
+ version_requirements: *12613980
91
91
  description: ! "OverSIP is an async SIP server. Built on top of Ruby EventMachine\n
92
92
  \ library it follows the Reactor Pattern, allowing thousands of concurrent connections
93
93
  and requests\n handled by a single processor in a never-blocking fashion. It