Commit 88b9df92 authored by Amos Latteier's avatar Amos Latteier

Added a PID file config stanza. Also fiddled with defaults a bit more.

parent 0f4301be
...@@ -17,11 +17,11 @@ import os ...@@ -17,11 +17,11 @@ import os
### ###
# This should point to your Zope directory # This should point to your Zope directory
SOFTWARE_HOME = '/projects/users/zs_zope' SOFTWARE_HOME = '/usr/local/Zope'
# This should point at the directory that contains your var directory. # This should point at the directory that contains your var directory.
# Most of the time this is the same as SOFTWARE_HOME # Most of the time this is the same as SOFTWARE_HOME
# INSTANCE_HOME = SOFTWARE_HOME INSTANCE_HOME = SOFTWARE_HOME
### ZServer configuration ### ZServer configuration
### ###
...@@ -52,9 +52,12 @@ MODULE='Main' ...@@ -52,9 +52,12 @@ MODULE='Main'
# Location of the ZServer log file. This file logs all ZServer activity. # Location of the ZServer log file. This file logs all ZServer activity.
# You may wish to create different logs for different servers. See # You may wish to create different logs for different servers. See
# medusa/logger.py for more information. # medusa/logger.py for more information.
LOG_FILE=os.path.join(INSTANCE_HOME, 'var', 'ZServer.log') LOG_FILE=os.path.join(INSTANCE_HOME, 'var', 'ZServer.log')
# Location of the ZServer pid file. When ZServer starts up it will write
# its PID to this file.
PID_FILE=os.path.join(INSTANCE_HOME, 'var', 'ZServer.pid')
## FTP configuration ## FTP configuration
## ##
...@@ -133,7 +136,7 @@ zftp = FTPServer( ...@@ -133,7 +136,7 @@ zftp = FTPServer(
# if it hasn't failed at this point, create a .pid file. # if it hasn't failed at this point, create a .pid file.
pf = open(os.path.join(INSTANCE_HOME, 'var', 'ZServer.pid'), 'w+') pf = open(PID_FILE), 'w+')
pf.write(("%s" % os.getpid())) pf.write(("%s" % os.getpid()))
pf.close() pf.close()
......
...@@ -17,11 +17,11 @@ import os ...@@ -17,11 +17,11 @@ import os
### ###
# This should point to your Zope directory # This should point to your Zope directory
SOFTWARE_HOME = '/projects/users/zs_zope' SOFTWARE_HOME = '/usr/local/Zope'
# This should point at the directory that contains your var directory. # This should point at the directory that contains your var directory.
# Most of the time this is the same as SOFTWARE_HOME # Most of the time this is the same as SOFTWARE_HOME
# INSTANCE_HOME = SOFTWARE_HOME INSTANCE_HOME = SOFTWARE_HOME
### ZServer configuration ### ZServer configuration
### ###
...@@ -52,9 +52,12 @@ MODULE='Main' ...@@ -52,9 +52,12 @@ MODULE='Main'
# Location of the ZServer log file. This file logs all ZServer activity. # Location of the ZServer log file. This file logs all ZServer activity.
# You may wish to create different logs for different servers. See # You may wish to create different logs for different servers. See
# medusa/logger.py for more information. # medusa/logger.py for more information.
LOG_FILE=os.path.join(INSTANCE_HOME, 'var', 'ZServer.log') LOG_FILE=os.path.join(INSTANCE_HOME, 'var', 'ZServer.log')
# Location of the ZServer pid file. When ZServer starts up it will write
# its PID to this file.
PID_FILE=os.path.join(INSTANCE_HOME, 'var', 'ZServer.pid')
## FTP configuration ## FTP configuration
## ##
...@@ -133,7 +136,7 @@ zftp = FTPServer( ...@@ -133,7 +136,7 @@ zftp = FTPServer(
# if it hasn't failed at this point, create a .pid file. # if it hasn't failed at this point, create a .pid file.
pf = open(os.path.join(INSTANCE_HOME, 'var', 'ZServer.pid'), 'w+') pf = open(PID_FILE), 'w+')
pf.write(("%s" % os.getpid())) pf.write(("%s" % os.getpid()))
pf.close() pf.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment