Warning when irqbalance hasn't root privileges
Signed-off-by: Petr Holasek <pholasek@redhat.com>
This commit is contained in:
parent
a37e7a0ab1
commit
1d7890db7e
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue