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
2277f8c9
Commit
2277f8c9
authored
Feb 18, 2004
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Port s/Zope/ZODB/ from Zope-2_7-branch.
parent
3b8c30bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
src/ZEO/mkzeoinst.py
src/ZEO/mkzeoinst.py
+12
-12
No files found.
src/ZEO/mkzeoinst.py
View file @
2277f8c9
...
...
@@ -73,7 +73,7 @@ zeo_conf_template = """\
default-to-interactive true
# user zope
python %(python)s
zdrun %(zo
pe
_home)s/zdaemon/zdrun.py
zdrun %(zo
db3
_home)s/zdaemon/zdrun.py
# This logfile should match the one in the %(package)s.conf file.
# It is used by zdctl's logtail command, zdrun/zdctl doesn't write it.
...
...
@@ -94,14 +94,14 @@ zeoctl_template = """\
# description: start a %(PACKAGE)s server
PYTHON="%(python)s"
ZO
PE_HOME="%(zope
_home)s"
ZO
DB3_HOME="%(zodb3
_home)s"
CONFIG_FILE="%(instance_home)s/etc/%(package)s.conf"
PYTHONPATH="$ZO
PE
_HOME"
PYTHONPATH="$ZO
DB3
_HOME"
export PYTHONPATH
ZEOCTL="$ZO
PE
_HOME/ZEO/zeoctl.py"
ZEOCTL="$ZO
DB3
_HOME/ZEO/zeoctl.py"
exec "$PYTHON" "$ZEOCTL" -C "$CONFIG_FILE" ${1+"$@"}
"""
...
...
@@ -111,14 +111,14 @@ runzeo_template = """\
# %(PACKAGE)s instance start script
PYTHON="%(python)s"
ZO
PE_HOME="%(zope
_home)s"
ZO
DB3_HOME="%(zodb3
_home)s"
CONFIG_FILE="%(instance_home)s/etc/%(package)s.conf"
PYTHONPATH="$ZO
PE
_HOME"
PYTHONPATH="$ZO
DB3
_HOME"
export PYTHONPATH
RUNZEO="$ZO
PE
_HOME/ZEO/runzeo.py"
RUNZEO="$ZO
DB3
_HOME/ZEO/runzeo.py"
exec "$PYTHON" "$RUNZEO" -C "$CONFIG_FILE" ${1+"$@"}
"""
...
...
@@ -149,8 +149,8 @@ class ZEOInstanceBuilder:
instance_home
=
os
.
path
.
abspath
(
instance_home
)
for
entry
in
sys
.
path
:
if
os
.
path
.
exists
(
os
.
path
.
join
(
entry
,
'Z
ope
'
)):
zo
pe
_home
=
entry
if
os
.
path
.
exists
(
os
.
path
.
join
(
entry
,
'Z
ODB
'
)):
zo
db3
_home
=
entry
break
else
:
print
"Can't find the Zope home (not in sys.path)"
...
...
@@ -162,14 +162,14 @@ class ZEOInstanceBuilder:
port
=
9999
checkport
(
port
)
params
=
self
.
get_params
(
zo
pe
_home
,
instance_home
,
port
)
params
=
self
.
get_params
(
zo
db3
_home
,
instance_home
,
port
)
self
.
create
(
instance_home
,
params
)
def
get_params
(
self
,
zo
pe
_home
,
instance_home
,
port
):
def
get_params
(
self
,
zo
db3
_home
,
instance_home
,
port
):
return
{
"package"
:
"zeo"
,
"PACKAGE"
:
"ZEO"
,
"zo
pe_home"
:
zope
_home
,
"zo
db3_home"
:
zodb3
_home
,
"instance_home"
:
instance_home
,
"port"
:
port
,
"python"
:
sys
.
executable
,
...
...
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