Warning when irqbalance hasn't root privileges

Signed-off-by: Petr Holasek <pholasek@redhat.com>
This commit is contained in:
Petr Holasek 2014-12-10 18:00:02 +01:00
parent a37e7a0ab1
commit 1d7890db7e

View file

@ -288,6 +288,9 @@ int main(int argc, char** argv)
} else
log(TO_CONSOLE, LOG_INFO, "This machine seems not NUMA capable.\n");
if (geteuid() != 0)
log(TO_ALL, LOG_WARNING, "Irqbalance hasn't been executed under root privileges, thus it won't in fact balance interrupts.\n");
if (banscript) {
char *note = "Please note that --banscript is deprecated, please use --policyscript instead";
log(TO_ALL, LOG_WARNING, "%s\n", note);