Browse Source

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

Simon 13 years ago
parent
commit
6dc0368580
1 changed files with 1 additions and 1 deletions
  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 '