Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
457cfb88
Commit
457cfb88
authored
Oct 11, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When running under zdaemon, chdir into var directory. Log success or
failure of chdir.
parent
6827c280
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
src/ZEO/start.py
src/ZEO/start.py
+10
-1
No files found.
src/ZEO/start.py
View file @
457cfb88
...
...
@@ -95,7 +95,7 @@ def main(argv):
sys
.
path
.
insert
(
0
,
directory
(
me
,
2
))
global
LOG
,
INFO
,
ERROR
from
zLOG
import
LOG
,
INFO
,
ERROR
,
PANIC
from
zLOG
import
LOG
,
INFO
,
WARNING
,
ERROR
,
PANIC
from
ZEO.util
import
Environment
env
=
Environment
(
me
)
...
...
@@ -223,6 +223,15 @@ def main(argv):
try
:
if
Z
:
# Change current directory (for core dumps etc.)
try
:
os
.
chdir
(
env
.
var
)
except
os
.
error
:
LOG
(
'ZEO/start.py'
,
WARNING
,
"Couldn't chdir to %s"
%
env
.
var
)
else
:
LOG
(
'ZEO/start.py'
,
INFO
,
"Changed directory to %s"
%
env
.
var
)
import
ZEO.StorageServer
,
asyncore
storages
=
{}
...
...
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