diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2019-11-18 12:19:43 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-11-18 12:19:43 +0300 |
commit | a07fcb3348b499eea4684a37d0aab0dbb0095e5f (patch) | |
tree | 30da1d49cbd726742aa07734e6e4aa08a4f3b4fc /include/functions | |
parent | cb52e9bfbe2bbfcacb7db9c26c4373d02366be9b (diff) |
Add USR1 trap to show status such as active test
Diffstat (limited to 'include/functions')
-rw-r--r-- | include/functions | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/functions b/include/functions index b96bb070..0c258907 100644 --- a/include/functions +++ b/include/functions @@ -98,6 +98,7 @@ # ShowComplianceFinding Display a particular finding regarding compliance or a security standard # ShowSymlinkPath Show a path behind a symlink # SkipAtomicTest Test if a subtest needs to be skipped +# Status Show execution status, such as active test being performed # StoreNginxSettings Save parsed nginx settings to file # TestValue Evaluate a value in a string or key # ViewCategories Show available category of tests @@ -3384,6 +3385,22 @@ ################################################################################ + # Name : Status() + # Description : Reports back the status of tool + # + # Returns : text to screen + # Notes : kill --signal USR1 <PID> or pkill --signal USR1 lynis + ################################################################################ + + Status() { + echo "" + echo "Date / time : $(date "+%Y-%m-%d %H:%M:%S")" + echo "Active test : ${TEST_NO:-NONE}" + echo "" + } + + + ################################################################################ # Name : StoreNginxSettings() # Description : Store parsed settings from nginx (by ParseNginx) # Input : multiple options |