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
23f28bee
Commit
23f28bee
authored
May 19, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved open of log file after su to nobody.
parent
8665d032
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
z2.py
z2.py
+10
-9
No files found.
z2.py
View file @
23f28bee
...
...
@@ -292,15 +292,6 @@ LOG_FILE=os.path.join(INSTANCE_HOME, 'var', 'Z2.log')
# its PID to this file.
PID_FILE
=
os
.
path
.
join
(
INSTANCE_HOME
,
'var'
,
'Z2.pid'
)
# open and close the log file, to make sure one is there.
v
=
open
(
LOG_FILE
,
'a'
)
v
.
close
()
# if it hasn't failed at this point, create a .pid file.
pf
=
open
(
PID_FILE
,
'w'
)
pf
.
write
(
str
(
os
.
getpid
()))
pf
.
close
()
# Try to become nobody. This will only work if this script is run by root.
try
:
import
pwd
...
...
@@ -312,6 +303,16 @@ try:
except
:
pass
# open and close the log file, to make sure one is there.
v
=
open
(
LOG_FILE
,
'a'
)
v
.
close
()
# if it hasn't failed at this point, create a .pid file.
pf
=
open
(
PID_FILE
,
'w'
)
pf
.
write
(
str
(
os
.
getpid
()))
pf
.
close
()
# import ZServer stuff
# First, we need to increase the number of threads
...
...
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