Преглед на файлове

only print root warning message when supervisord runs and not upon client run

Simon преди 13 години
родител
ревизия
6dc0368580
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      supervisor/options.py

+ 1 - 1
supervisor/options.py

@@ -281,7 +281,7 @@ class Options:
                     self._set(name, value, 1)
 
         if self.configfile is None:
-            if os.getuid() == 0: # pragma: no cover
+            if os.getuid() == 0 and self.progname.find("supervisord") > -1: # pragma: no cover
                 self.warnings.warn(
                     'Supervisord is running as root and it is searching '
                     'for its configuration file in default locations '