On 10/06/2017 01:59 PM, Ruben Safir wrote: > > And what really puzzles me is the error line on the trace > > /usr/lib/mailman/bin/mailmanctl > omask = os.umask(6) > try: > fp = open(mm_cfg.PIDFILE, 'w') > print >> fp, os.getpid() > fp.close() > finally: > os.umask(omask) > > That file, mm_cfg.PIDFILE doesn't exist anywhere on the system.
mm_cfg.PIDFILE is the setting of PIDFILE in Mailman/Defaults.py or as overriden in Mailman/mm_cfg.py. The Default setting from Mailman/Defaults.py is PIDFILE = os.path.join(DATA_DIR, 'master-qrunner.pid') and DATA_DIR is DATA_DIR = os.path.join(VAR_PREFIX, 'data') and VAR_PREFIX is set by configure, and is also defined in Defaults.py and in your case is VAR_PREFIX = '/var/lib/mailman/' > When you run it from the command line, it works without complaining. > > I think there is a problem with the permissions being created for the pid > file. The permissions look OK. Could this be a SELinux or apparmor issue? > I would really prefer the pid file to be put in /var/run You can always put PIDFILE = '/var/run/mailman.pid' or whatever you want in mm_cfg.py. -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org