diff options
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 = [ |
