{"action":"opened","issue":{"url":"https://api.github.com/repos/CISOfy/lynis/issues/61","labels_url":"https://api.github.com/repos/CISOfy/lynis/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/CISOfy/lynis/issues/61/comments","events_url":"https://api.github.com/repos/CISOfy/lynis/issues/61/events","html_url":"https://github.com/CISOfy/lynis/issues/61","id":97972252,"number":61,"title":"BOOT-5180 - runlevel debian Jessie","user":{"login":"DocEmmetBrown","id":8502556,"avatar_url":"https://avatars.githubusercontent.com/u/8502556?v=3","gravatar_id":"","url":"https://api.github.com/users/DocEmmetBrown","html_url":"https://github.com/DocEmmetBrown","followers_url":"https://api.github.com/users/DocEmmetBrown/followers","following_url":"https://api.github.com/users/DocEmmetBrown/following{/other_user}","gists_url":"https://api.github.com/users/DocEmmetBrown/gists{/gist_id}","starred_url":"https://api.github.com/users/DocEmmetBrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DocEmmetBrown/subscriptions","organizations_url":"https://api.github.com/users/DocEmmetBrown/orgs","repos_url":"https://api.github.com/users/DocEmmetBrown/repos","events_url":"https://api.github.com/users/DocEmmetBrown/events{/privacy}","received_events_url":"https://api.github.com/users/DocEmmetBrown/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-29T16:11:37Z","updated_at":"2015-07-29T16:11:37Z","closed_at":null,"body":"Hi,\r\n\r\nDebian Jessie's default `runlevel` returns `N 5`, so the BOOT-5180 test returns that it couldn't determine runlevel. \r\n\r\nan ugly tweak : \r\n\r\n```\r\ndiff --git a/include/tests_boot_services b/include/tests_boot_services\r\nindex 5ce609f..f0aad2c 100644\r\n--- a/include/tests_boot_services\r\n+++ b/include/tests_boot_services\r\n@@ -464,7 +464,7 @@\r\n     Register --test-no BOOT-5180 --os Linux --preqs-met ${PREQS_MET} --weight L --network NO --description \"Check for Linux boot services (Debian style)\"\r\n     if [ ${SKIPTEST} -eq 0 ]; then\r\n         # Runlevel check\r\n-        sRUNLEVEL=`${RUNLEVELBINARY} | grep \"N 2\"`\r\n+        sRUNLEVEL=`${RUNLEVELBINARY} | grep \"N [2,5]\"`\r\n         if [ ! \"${sRUNLEVEL}\" = \"\" ]; then\r\n             FIND=`find /etc/rc2.d -type l -print | cut -d '/' -f4 | sed \"s/S[0-9][0-9]//g\" | sort`\r\n             if [ ! \"${FIND}\" = \"\" ]; then\r\n```\r\n\r\nMay be it could be nicer to test if debian version is >= 8.0 ;) \r\n\r\nCheers"}}