소스 검색

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 '