Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2019-07-26 12:32:48 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-07-26 12:32:48 +0300
commit17137408d29d004e7ec1512ab7e6b7d30ff28ebe (patch)
tree85991b6df7fa8f8d49845b48c43038b049b68121 /include/tests_shells
parent8321b986891eae1f928434ea9ac0003ae743ab67 (diff)
Use IsRunning exit code instead of variable
Diffstat (limited to 'include/tests_shells')
-rw-r--r--include/tests_shells6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/tests_shells b/include/tests_shells
index 8e97ae86..37d152b4 100644
--- a/include/tests_shells
+++ b/include/tests_shells
@@ -107,14 +107,12 @@
IDLE_TIMEOUT_READONLY=""
LogText "Test: Search for session timeout tools or settings in shell"
- IsRunning timeoutd
- if [ ${RUNNING} -eq 1 ]; then
+ if IsRunning "timeoutd"; then
IDLE_TIMEOUT=1
LogText "Result: found timeoutd process to kill idle sesions"
IDLE_TIMEOUT_METHOD="timeout-daemon"
fi
- IsRunning autolog
- if [ ${RUNNING} -eq 1 ]; then
+ if IsRunning "autolog"; then
IDLE_TIMEOUT=1
LogText "Result: found autolog process to kill idle sesions"
Report="session_timeout_method[]=autolog"