File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,12 @@ int main(int argc, char *argv[]) {
173
173
exit (EXIT_SUCCESS);
174
174
}
175
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
+
176
182
logger->critical (" Error loading config: {}" , e.what ());
177
183
exit (EXIT_FAILURE);
178
184
}
@@ -182,7 +188,7 @@ int main(int argc, char *argv[]) {
182
188
logger->set_level (config.getLogLevel ());
183
189
184
190
if (getuid ()) {
185
- logger->critical (" please run polycubed as root" );
191
+ logger->critical (" polycubed should be executed with root privileges " );
186
192
exit (EXIT_FAILURE);
187
193
}
188
194
You can’t perform that action at this time.
0 commit comments