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
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
ZEO
Commits
a07f8af3
Commit
a07f8af3
authored
Aug 04, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Immediately(ish) remove temporary config files created for ad hoc servers
They're annoying. :)
parent
9613f09b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
README.rst
README.rst
+2
-4
src/ZEO/tests/forker.py
src/ZEO/tests/forker.py
+1
-1
No files found.
README.rst
View file @
a07f8af3
...
@@ -180,12 +180,10 @@ Which is a short-hand for::
...
@@ -180,12 +180,10 @@ Which is a short-hand for::
connection = db.open()
connection = db.open()
If you exit the Python process, the storage exits as well, as it's run
If you exit the Python process, the storage exits as well, as it's run
in an in-process thread. It will leave behind it's configuration and
in an in-process thread.
log file. This provides a handy way to get a configuration example.
You shut down the server more cleanly by calling the stop function
You shut down the server more cleanly by calling the stop function
returned by the ``ZEO.server`` function. This will remove the
returned by the ``ZEO.server`` function.
temporary configuration file.
To have data stored persistently, you can specify a file-storage path
To have data stored persistently, you can specify a file-storage path
name using a ``path`` parameter. If you want blob support, you can
name using a ``path`` parameter. If you want blob support, you can
...
...
src/ZEO/tests/forker.py
View file @
a07f8af3
...
@@ -139,6 +139,7 @@ def runner(config, qin, qout, timeout=None,
...
@@ -139,6 +139,7 @@ def runner(config, qin, qout, timeout=None,
)
)
thread
.
setDaemon
(
True
)
thread
.
setDaemon
(
True
)
thread
.
start
()
thread
.
start
()
os
.
remove
(
config
)
try
:
try
:
qin
.
get
(
timeout
=
timeout
)
# wait for shutdown
qin
.
get
(
timeout
=
timeout
)
# wait for shutdown
...
@@ -181,7 +182,6 @@ def stop_runner(thread, config, qin, qout, stop_timeout=9, pid=None):
...
@@ -181,7 +182,6 @@ def stop_runner(thread, config, qin, qout, stop_timeout=9, pid=None):
gc
.
collect
()
gc
.
collect
()
thread
.
join
(
stop_timeout
)
thread
.
join
(
stop_timeout
)
os
.
remove
(
config
)
def
start_zeo_server
(
storage_conf
=
None
,
zeo_conf
=
None
,
port
=
None
,
keep
=
False
,
def
start_zeo_server
(
storage_conf
=
None
,
zeo_conf
=
None
,
port
=
None
,
keep
=
False
,
path
=
'Data.fs'
,
protocol
=
None
,
blob_dir
=
None
,
path
=
'Data.fs'
,
protocol
=
None
,
blob_dir
=
None
,
...
...
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