We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1bb4fd9 + 5270372 commit 3b4323aCopy full SHA for 3b4323a
1 file changed
src/polycubed/src/polycubed.cpp
@@ -173,6 +173,12 @@ int main(int argc, char *argv[]) {
173
exit(EXIT_SUCCESS);
174
}
175
} catch (const std::exception &e) {
176
+
177
+ // The problem of the error in loading the config file may be due to
178
+ // polycubed executed as normal user
179
+ if (getuid())
180
+ logger->critical("polycubed should be executed with root privileges");
181
182
logger->critical("Error loading config: {}", e.what());
183
exit(EXIT_FAILURE);
184
@@ -182,7 +188,7 @@ int main(int argc, char *argv[]) {
188
logger->set_level(config.getLogLevel());
189
190
if (getuid()) {
185
- logger->critical("please run polycubed as root");
191
186
192
187
193
194
0 commit comments