Browse code

minor revisions

Gandolf authored on 10/04/2020 05:03:10
Showing 1 changed files
1 1
deleted file mode 100755
... ...
@@ -1,15 +0,0 @@
1
-#!/bin/bash
2
-# Stop the radmon agent process and clean up environment.
3
-
4
-# Set path to radmon input data file
5
-RADMON_INPUT_DATA_FILE="/home/$USER/public_html/radmon/dynamic/radmonInputData.dat"
6
-RADMON_OUTPUT_DATA_FILE="/home/$USER/public_html/radmon/dynamic/radmonOutputData.js"
7
-
8
-PROCESS_ID="$(ps x | awk '/[r]admonAgent.py/{print $1}')"
9
-
10
-if [ -n "$PROCESS_ID" ]; then
11
-  printf "killing radmon agent [%s]\n" $PROCESS_ID
12
-  kill $PROCESS_ID
13
-else
14
-  echo radmon agent not running
15
-fi
Browse code

sync 2018-07-27

fractalxaos authored on 07/27/2018 19:27:41
Showing 1 changed files
... ...
@@ -10,15 +10,6 @@ PROCESS_ID="$(ps x | awk '/[r]admonAgent.py/{print $1}')"
10 10
 if [ -n "$PROCESS_ID" ]; then
11 11
   printf "killing radmon agent [%s]\n" $PROCESS_ID
12 12
   kill $PROCESS_ID
13
-
14
-  # Remove input data file to alert mirror servers
15
-  if [ -e $RADMON_INPUT_DATA_FILE ]; then
16
-    rm $RADMON_INPUT_DATA_FILE
17
-  fi
18
-  # Remove output data file to alert web clients
19
-  if [ -e $RADMON_OUTPUT_DATA_FILE ]; then
20
-    rm $RADMON_OUTPUT_DATA_FILE
21
-  fi
22 13
 else
23 14
   echo radmon agent not running
24 15
 fi
Browse code

minor revisions 20180303

fractalxaos authored on 03/04/2018 01:14:48
Showing 1 changed files
1 1
old mode 100644
2 2
new mode 100755
... ...
@@ -1,11 +1,24 @@
1 1
 #!/bin/bash
2
+# Stop the radmon agent process and clean up environment.
2 3
 
3
-# Next stop the database update process.
4
+# Set path to radmon input data file
5
+RADMON_INPUT_DATA_FILE="/home/$USER/public_html/radmon/dynamic/radmonInputData.dat"
6
+RADMON_OUTPUT_DATA_FILE="/home/$USER/public_html/radmon/dynamic/radmonOutputData.js"
4 7
 
5 8
 PROCESS_ID="$(ps x | awk '/[r]admonAgent.py/{print $1}')"
9
+
6 10
 if [ -n "$PROCESS_ID" ]; then
7 11
   printf "killing radmon agent [%s]\n" $PROCESS_ID
8 12
   kill $PROCESS_ID
13
+
14
+  # Remove input data file to alert mirror servers
15
+  if [ -e $RADMON_INPUT_DATA_FILE ]; then
16
+    rm $RADMON_INPUT_DATA_FILE
17
+  fi
18
+  # Remove output data file to alert web clients
19
+  if [ -e $RADMON_OUTPUT_DATA_FILE ]; then
20
+    rm $RADMON_OUTPUT_DATA_FILE
21
+  fi
9 22
 else
10 23
   echo radmon agent not running
11 24
 fi
Browse code

first release

Jeff Owrey authored on 09/25/2015 03:44:17
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,11 @@
1
+#!/bin/bash
2
+
3
+# Next stop the database update process.
4
+
5
+PROCESS_ID="$(ps x | awk '/[r]admonAgent.py/{print $1}')"
6
+if [ -n "$PROCESS_ID" ]; then
7
+  printf "killing radmon agent [%s]\n" $PROCESS_ID
8
+  kill $PROCESS_ID
9
+else
10
+  echo radmon agent not running
11
+fi