diff options
| author | Barry Warsaw | 2010-03-28 17:04:59 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2010-03-28 17:04:59 -0400 |
| commit | e2e024972d130f919890bb84aeab02354e0ff5c1 (patch) | |
| tree | 06674f1e96f67ccaa20cd903f302dae85f2e4f25 /src/mailman/commands/cli_control.py | |
| parent | 9b3e3881f4db1de7deca487859afff22aa922324 (diff) | |
| download | mailman-e2e024972d130f919890bb84aeab02354e0ff5c1.tar.gz mailman-e2e024972d130f919890bb84aeab02354e0ff5c1.tar.zst mailman-e2e024972d130f919890bb84aeab02354e0ff5c1.zip | |
Diffstat (limited to 'src/mailman/commands/cli_control.py')
| -rw-r--r-- | src/mailman/commands/cli_control.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mailman/commands/cli_control.py b/src/mailman/commands/cli_control.py index e6c9c83b3..83432a6e8 100644 --- a/src/mailman/commands/cli_control.py +++ b/src/mailman/commands/cli_control.py @@ -108,6 +108,9 @@ class Start: # call. os.setsid() # Instead of cd'ing to root, cd to the Mailman runtime directory. + # However, before we do that, set an environment variable used by the + # subprocesses to calculate their path to the $VAR_DIR. + os.environ['MAILMAN_VAR_DIR'] = config.VAR_DIR os.chdir(config.VAR_DIR) # Exec the master watcher. execl_args = [ |
