nagira 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/History.md +4 -0
  3. data/config/nagira.init_d +12 -16
  4. data/version.txt +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a527fc662d7e3b6219167e10099f3c34ffa6e84
4
- data.tar.gz: 77ec09dd1e3fab0057f3679168efb249fef63ea1
3
+ metadata.gz: c09bc3962e430c97414b5e339bda189c34cb799a
4
+ data.tar.gz: 7eb9575f51aa191a37ba1504b50e65d9a8e2882d
5
5
  SHA512:
6
- metadata.gz: 8dd228893c307314d2a672a41f8b6a9481f78fbb757b16076c6863b69f1fd8f22cb45aa12e1dc1407530de100a5162921c9f00aa168a01b940bc5d91ad051038
7
- data.tar.gz: 4b9a585a556f951961b2435e93a6fecfc8f2a48d9bd57d63a96a8e23276d74ba03ec7aea9b2f8d8dd1a7a982b9ad3334cd44fff34ce5d7d674fa68d6033c1175
6
+ metadata.gz: 3f7eb07bad39c7498eb7f3d07d6863124dbbf0baa66a4180ebcabebea252434d9c9fba91d4d7348bab223f97d0d442e7be27c77d7e50772d0cbb4ee9f45b9b42
7
+ data.tar.gz: ece7da05d6591689494b15eea77da1a02dc0e9c1050f6064da5c8d34d33eaaefeccc868ff1617e5e66b1db332f2e4768a20e41379a8e8b216d3792056b5ebca3
data/History.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### v.0.3.1
2
+ * Mon Aug 26 2013 -- Dmytro Kovalov
3
+ - Bugfix: fix for init.d script to load defaults file
4
+
1
5
  ### v.0.3.0
2
6
  * Mon Aug 26 2013 -- Dmytro Kovalov
3
7
  - Feature: Configurable hostname regex (see `NAGIOS_HOST_CUSTOM_REGEXi` in `config/nagira.defaults`)
data/config/nagira.init_d CHANGED
@@ -23,22 +23,19 @@ process_name="Sinatra Nagira services"
23
23
  pid_file=/var/run/nagira.pid
24
24
 
25
25
 
26
- load_defaults () {
27
- which sherlock > /dev/null 2>&1 && eval $(sherlock | grep FAMILY) || { echo "sherlock not found"; exit 2; }
28
-
29
- case $FAMILY in
30
- 'rh')
31
- DEFAULTS=/etc/sysconfig/nagira ;;
32
- 'debian')
33
- DEFAULTS=/etc/default/nagira ;;
34
- *)
35
- echo "Unknown OS or distribution version: $FAMILY"
26
+ which sherlock > /dev/null 2>&1 && eval $(sherlock | grep FAMILY) || { echo "sherlock not found"; exit 2; }
27
+
28
+ case $FAMILY in
29
+ 'rh')
30
+ DEFAULTS=/etc/sysconfig/nagira ;;
31
+ 'debian')
32
+ DEFAULTS=/etc/default/nagira ;;
33
+ *)
34
+ echo "Unknown OS or distribution version: $FAMILY"
36
35
  exit 1
37
36
  ;;
38
- esac
39
- source $DEFAULTS || { echo "Can not load defaults file" ; exit 1 ; }
40
- }
41
-
37
+ esac
38
+ source $DEFAULTS || { echo "Can not load defaults file" ; exit 1 ; }
42
39
 
43
40
  ##
44
41
  # Some reasonable defaults if not set in defaults file
@@ -68,8 +65,7 @@ get_pid () {
68
65
  start() {
69
66
  [ ! -z "$(get_pid)" ] && { status; return 1; }
70
67
  echo -n "Starting ${process_name}: "
71
- load_defaults
72
- su - $NAGIRA_USER -s /bin/bash -c "$RVM_STRING ; RACK_ENV=$RACK_ENV nagira&" > $NAGIRA_LOG 2>&1
68
+ su - $NAGIRA_USER -s /bin/bash -c "source $DEFAULTS ; $RVM_STRING ; RACK_ENV=$RACK_ENV nagira&" > $NAGIRA_LOG 2>&1
73
69
  sleep 5
74
70
  process=$(get_pid)
75
71
  if [ -z "$process" ]; then
data/version.txt CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nagira
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmytro Kovalov