Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug causing script to hang #86

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Fixed bug causing script to hang

The original 'cat /dev/urandom' method caused the script to hang indefinitely on my system. Give that Linux has UUID generation built in at the kernel level, I see no reason to use such a hackish method.
  • Loading branch information
Kevin Soviero
Kevin Soviero committed Feb 21, 2017
commit bac8014ef4250d7a5617a6b56d1b0095458c4f90
@@ -567,7 +567,7 @@ createRsyslogDir()
checkIfLogsMadeToLoggly()
{
logMsgToConfigSysLog "INFO" "INFO: Sending test message to Loggly."
uuid=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
uuid=$(cat /proc/sys/kernel/random/uuid)

queryParam="syslog.appName%3ALOGGLYVERIFY%20$uuid"
logger -t "LOGGLYVERIFY" "LOGGLYVERIFY-Test message for verification with UUID $uuid"
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.