nagira 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +4 -0
- data/config/nagira.init_d +12 -16
- data/version.txt +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c09bc3962e430c97414b5e339bda189c34cb799a
|
4
|
+
data.tar.gz: 7eb9575f51aa191a37ba1504b50e65d9a8e2882d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f7eb07bad39c7498eb7f3d07d6863124dbbf0baa66a4180ebcabebea252434d9c9fba91d4d7348bab223f97d0d442e7be27c77d7e50772d0cbb4ee9f45b9b42
|
7
|
+
data.tar.gz: ece7da05d6591689494b15eea77da1a02dc0e9c1050f6064da5c8d34d33eaaefeccc868ff1617e5e66b1db332f2e4768a20e41379a8e8b216d3792056b5ebca3
|
data/History.md
CHANGED
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
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
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
|
-
|
39
|
-
|
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
|
-
|
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.
|
1
|
+
0.3.1
|