Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
88b9df92
Commit
88b9df92
authored
Apr 27, 1999
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a PID file config stanza. Also fiddled with defaults a bit more.
parent
0f4301be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
ZServer/start.py
ZServer/start.py
+7
-4
lib/python/ZServer/start.py
lib/python/ZServer/start.py
+7
-4
No files found.
ZServer/start.py
View file @
88b9df92
...
...
@@ -17,11 +17,11 @@ import os
###
# This should point to your Zope directory
SOFTWARE_HOME
=
'/
projects/users/zs_z
ope'
SOFTWARE_HOME
=
'/
usr/local/Z
ope'
# This should point at the directory that contains your var directory.
# Most of the time this is the same as SOFTWARE_HOME
#
INSTANCE_HOME = SOFTWARE_HOME
INSTANCE_HOME
=
SOFTWARE_HOME
### ZServer configuration
###
...
...
@@ -52,9 +52,12 @@ MODULE='Main'
# Location of the ZServer log file. This file logs all ZServer activity.
# You may wish to create different logs for different servers. See
# medusa/logger.py for more information.
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
##
...
...
@@ -133,7 +136,7 @@ zftp = FTPServer(
# 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
.
close
()
...
...
lib/python/ZServer/start.py
View file @
88b9df92
...
...
@@ -17,11 +17,11 @@ import os
###
# This should point to your Zope directory
SOFTWARE_HOME
=
'/
projects/users/zs_z
ope'
SOFTWARE_HOME
=
'/
usr/local/Z
ope'
# This should point at the directory that contains your var directory.
# Most of the time this is the same as SOFTWARE_HOME
#
INSTANCE_HOME = SOFTWARE_HOME
INSTANCE_HOME
=
SOFTWARE_HOME
### ZServer configuration
###
...
...
@@ -52,9 +52,12 @@ MODULE='Main'
# Location of the ZServer log file. This file logs all ZServer activity.
# You may wish to create different logs for different servers. See
# medusa/logger.py for more information.
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
##
...
...
@@ -133,7 +136,7 @@ zftp = FTPServer(
# 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
.
close
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment