1 | 1 |
deleted file mode 100755 |
... | ... |
@@ -1,27 +0,0 @@ |
1 |
-#!/bin/bash |
|
2 |
-# |
|
3 |
-# The monitor url can look something like http://192.168.1.155, or |
|
4 |
-# something linke http://radiationMonitor.domain.com depending on |
|
5 |
-# whether your local network uses a domain name server. |
|
6 |
-# |
|
7 |
- |
|
8 |
-APP_PATH="/home/$USER/bin" |
|
9 |
-LOG_PATH="/home/$USER/log" |
|
10 |
- |
|
11 |
-AGENT_NAME="[a]rednsigAgent.py" |
|
12 |
-NODE_URL="http://localnode:8080/cgi-bin/signal.json" |
|
13 |
- |
|
14 |
-POLLING_INTERVAL="60" |
|
15 |
- |
|
16 |
-PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')" |
|
17 |
- |
|
18 |
-if [ -n "$PROCESS_ID" ]; then |
|
19 |
- if [ "$1" != "-q" ]; then |
|
20 |
- printf "arednsig agent running [%s]\n" $PROCESS_ID |
|
21 |
- fi |
|
22 |
-else |
|
23 |
- printf "starting up arednsig agent\n" |
|
24 |
- cd $APP_PATH |
|
25 |
- $(./$AGENT_NAME -u $NODE_URL -p $POLLING_INTERVAL >> \ |
|
26 |
- $LOG_PATH/arednsigAgent.log 2>&1 &) |
|
27 |
-fi |
1 | 1 |
new file mode 100755 |
... | ... |
@@ -0,0 +1,27 @@ |
1 |
+#!/bin/bash |
|
2 |
+# |
|
3 |
+# The monitor url can look something like http://192.168.1.155, or |
|
4 |
+# something linke http://radiationMonitor.domain.com depending on |
|
5 |
+# whether your local network uses a domain name server. |
|
6 |
+# |
|
7 |
+ |
|
8 |
+APP_PATH="/home/$USER/bin" |
|
9 |
+LOG_PATH="/home/$USER/log" |
|
10 |
+ |
|
11 |
+AGENT_NAME="[a]rednsigAgent.py" |
|
12 |
+NODE_URL="http://localnode:8080/cgi-bin/signal.json" |
|
13 |
+ |
|
14 |
+POLLING_INTERVAL="60" |
|
15 |
+ |
|
16 |
+PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')" |
|
17 |
+ |
|
18 |
+if [ -n "$PROCESS_ID" ]; then |
|
19 |
+ if [ "$1" != "-q" ]; then |
|
20 |
+ printf "arednsig agent running [%s]\n" $PROCESS_ID |
|
21 |
+ fi |
|
22 |
+else |
|
23 |
+ printf "starting up arednsig agent\n" |
|
24 |
+ cd $APP_PATH |
|
25 |
+ $(./$AGENT_NAME -u $NODE_URL -p $POLLING_INTERVAL >> \ |
|
26 |
+ $LOG_PATH/arednsigAgent.log 2>&1 &) |
|
27 |
+fi |
1 | 1 |
deleted file mode 100755 |
... | ... |
@@ -1,27 +0,0 @@ |
1 |
-#!/bin/bash |
|
2 |
-# |
|
3 |
-# The monitor url can look something like http://192.168.1.155, or |
|
4 |
-# something linke http://radiationMonitor.domain.com depending on |
|
5 |
-# whether your local network uses a domain name server. |
|
6 |
-# |
|
7 |
- |
|
8 |
-APP_PATH="/home/$USER/bin" |
|
9 |
-LOG_PATH="/home/$USER/log" |
|
10 |
- |
|
11 |
-AGENT_NAME="[a]rednsigAgent.py" |
|
12 |
-NODE_URL="http://localnode:8080/cgi-bin/signal.json" |
|
13 |
- |
|
14 |
-POLLING_INTERVAL="60" |
|
15 |
- |
|
16 |
-PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')" |
|
17 |
- |
|
18 |
-if [ -n "$PROCESS_ID" ]; then |
|
19 |
- if [ "$1" != "-q" ]; then |
|
20 |
- printf "arednsig agent running [%s]\n" $PROCESS_ID |
|
21 |
- fi |
|
22 |
-else |
|
23 |
- printf "starting up arednsig agent\n" |
|
24 |
- cd $APP_PATH |
|
25 |
- $(./$AGENT_NAME -u $NODE_URL -p $POLLING_INTERVAL >> \ |
|
26 |
- $LOG_PATH/arednsigAgent.log 2>&1 &) |
|
27 |
-fi |
1 | 1 |
new file mode 100755 |
... | ... |
@@ -0,0 +1,27 @@ |
1 |
+#!/bin/bash |
|
2 |
+# |
|
3 |
+# The monitor url can look something like http://192.168.1.155, or |
|
4 |
+# something linke http://radiationMonitor.domain.com depending on |
|
5 |
+# whether your local network uses a domain name server. |
|
6 |
+# |
|
7 |
+ |
|
8 |
+APP_PATH="/home/$USER/bin" |
|
9 |
+LOG_PATH="/home/$USER/log" |
|
10 |
+ |
|
11 |
+AGENT_NAME="[a]rednsigAgent.py" |
|
12 |
+NODE_URL="http://localnode:8080/cgi-bin/signal.json" |
|
13 |
+ |
|
14 |
+POLLING_INTERVAL="60" |
|
15 |
+ |
|
16 |
+PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')" |
|
17 |
+ |
|
18 |
+if [ -n "$PROCESS_ID" ]; then |
|
19 |
+ if [ "$1" != "-q" ]; then |
|
20 |
+ printf "arednsig agent running [%s]\n" $PROCESS_ID |
|
21 |
+ fi |
|
22 |
+else |
|
23 |
+ printf "starting up arednsig agent\n" |
|
24 |
+ cd $APP_PATH |
|
25 |
+ $(./$AGENT_NAME -u $NODE_URL -p $POLLING_INTERVAL >> \ |
|
26 |
+ $LOG_PATH/arednsigAgent.log 2>&1 &) |
|
27 |
+fi |
1 | 1 |
deleted file mode 100755 |
... | ... |
@@ -1,27 +0,0 @@ |
1 |
-#!/bin/bash |
|
2 |
-# |
|
3 |
-# The monitor url can look something like http://192.168.1.155, or |
|
4 |
-# something linke http://radiationMonitor.domain.com depending on |
|
5 |
-# whether your local network uses a domain name server. |
|
6 |
-# |
|
7 |
- |
|
8 |
-APP_PATH="/home/$USER/bin" |
|
9 |
-LOG_PATH="/home/$USER/log" |
|
10 |
- |
|
11 |
-AGENT_NAME="[a]rednsigAgent.py" |
|
12 |
-NODE_URL="http://localnode:8080/cgi-bin/signal.json" |
|
13 |
- |
|
14 |
-POLLING_INTERVAL="60" |
|
15 |
- |
|
16 |
-PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')" |
|
17 |
- |
|
18 |
-if [ -n "$PROCESS_ID" ]; then |
|
19 |
- if [ "$1" != "-q" ]; then |
|
20 |
- printf "arednsig agent running [%s]\n" $PROCESS_ID |
|
21 |
- fi |
|
22 |
-else |
|
23 |
- printf "starting up arednsig agent\n" |
|
24 |
- cd $APP_PATH |
|
25 |
- $(./$AGENT_NAME -u $NODE_URL -p $POLLING_INTERVAL >> \ |
|
26 |
- $LOG_PATH/arednsigAgent.log 2>&1 &) |
|
27 |
-fi |
1 | 1 |
new file mode 100755 |
... | ... |
@@ -0,0 +1,27 @@ |
1 |
+#!/bin/bash |
|
2 |
+# |
|
3 |
+# The monitor url can look something like http://192.168.1.155, or |
|
4 |
+# something linke http://radiationMonitor.domain.com depending on |
|
5 |
+# whether your local network uses a domain name server. |
|
6 |
+# |
|
7 |
+ |
|
8 |
+APP_PATH="/home/$USER/bin" |
|
9 |
+LOG_PATH="/home/$USER/log" |
|
10 |
+ |
|
11 |
+AGENT_NAME="[a]rednsigAgent.py" |
|
12 |
+NODE_URL="http://localnode:8080/cgi-bin/signal.json" |
|
13 |
+ |
|
14 |
+POLLING_INTERVAL="60" |
|
15 |
+ |
|
16 |
+PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')" |
|
17 |
+ |
|
18 |
+if [ -n "$PROCESS_ID" ]; then |
|
19 |
+ if [ "$1" != "-q" ]; then |
|
20 |
+ printf "arednsig agent running [%s]\n" $PROCESS_ID |
|
21 |
+ fi |
|
22 |
+else |
|
23 |
+ printf "starting up arednsig agent\n" |
|
24 |
+ cd $APP_PATH |
|
25 |
+ $(./$AGENT_NAME -u $NODE_URL -p $POLLING_INTERVAL >> \ |
|
26 |
+ $LOG_PATH/arednsigAgent.log 2>&1 &) |
|
27 |
+fi |