Showing 1 changed files with 2 additions and 2 deletions
+2 -2
monitoring.d/common-tests
... ...
@@ -39,7 +39,7 @@ function sys_state () {
39 39
 
40 40
 function restart_needed () {
41 41
     _turn 24 || return
42
-    echo "$(needrestart -m a -r l -bkl | awk -F': ' '{
42
+    needrestart -m a -r l -bkl | awk -F': ' '{
43 43
         if ($1 == "NEEDRESTART-SVC")
44 44
             needrestart[gensub("NEEDRESTART-", "", "1", $1)][gensub(".service", "", "1", $2)]++
45 45
         else
... ...
@@ -55,7 +55,7 @@ function restart_needed () {
55 55
                 for (svc in needrestart["SVC"])
56 56
                     print "- " svc
57 57
             }
58
-        }')"
58
+        }'
59 59
 }
60 60
 
61 61
 function autotest () {