Skip to content
Snippets Groups Projects
Forked from Alexander Holt / devops-workshop
1 commit behind, 12 commits ahead of the upstream repository.
runLogging 314 B
#!/bin/bash

if ! [ $(id -u) = 0 ]; then
   echo "This script needs to be run as root." >&2
   exit 1
fi

clear
echo "Starting logsystem..."
sudo -u $SUDO_USER touch ~/warnings.txt # Run as normal user, so the file is created in the right home directory
glances -C glances.conf --export influxdb -q &
echo "Done."