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
19347e97
Commit
19347e97
authored
Dec 12, 2000
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change use of ZEO dict
parent
df4fccfb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
zconfig.py.in
zconfig.py.in
+2
-2
zctl.py
zctl.py
+6
-6
No files found.
zconfig.py.in
View file @
19347e97
...
...
@@ -25,8 +25,8 @@ ZOPE_HOME = '/usr/local/zope_soft'
# ZEO
# If ZEO is installed, then ZEO_SERVER_NAME and ZEO_SERVER_PORT are required
#ZEO['
ZEO_
SERVER_NAME'] = '10.0.0.1'
#ZEO['
ZEO_
SERVER_PORT'] = 2221
#ZEO['SERVER_NAME'] = '10.0.0.1'
#ZEO['SERVER_PORT'] = 2221
# ZEO_WAIT_BAILOUT may be used to specify how many seconds zctl.py
# should wait for ZEO to start before giving up
...
...
zctl.py
View file @
19347e97
...
...
@@ -77,7 +77,7 @@ execfile(ZOPE_CONFIG, globals())
env
[
'INSTANCE_HOME'
]
=
HERE
env
[
'PYTHONHOME'
]
=
ZOPE_HOME
=
abspath
(
ZOPE_HOME
)
for
k
,
v
in
ZEO
.
items
():
env
[
k
]
=
str
(
v
)
env
[
'ZEO_'
+
k
]
=
str
(
v
)
# Commands
...
...
@@ -102,7 +102,7 @@ def zctl_start(args):
clients
.
append
(
'default'
)
cmd
=
'%s "%s/z2.py" %%s'
%
(
PYTHON
,
ZOPE_HOME
)
global
ZOPE_PORT
,
ZOPE_LOG
,
ZOPE_OPTS
,
ZOPE_ENV
,
ZEO_ENV
global
ZOPE_PORT
,
ZOPE_LOG
,
ZOPE_OPTS
,
ZOPE_ENV
for
client
in
clients
:
args
=
list
(
zope_args
)
if
client
!=
'default'
:
...
...
@@ -132,8 +132,8 @@ def zctl_start_zeo(args):
"""Try to start ZEO."""
for
item
in
ZEO_ENV
.
items
():
args
.
append
(
"%s=%s"
%
item
)
host
=
ZEO
.
get
(
'
ZEO_
SERVER_NAME'
,
'localhost'
)
port
=
ZEO
[
'
ZEO_
SERVER_PORT'
]
host
=
ZEO
.
get
(
'SERVER_NAME'
,
'localhost'
)
port
=
ZEO
[
'SERVER_PORT'
]
if
host
==
'localhost'
and
not
_check_for_service
(
host
,
port
):
print
"Starting ZEO server on"
,
port
cmd
=
'%s %s/lib/python/ZEO/start.py -p %s %s &'
%
(
...
...
@@ -185,8 +185,8 @@ def zctl_status(args):
"""Print status."""
print
"NAME
\
t
PORT
\
t
PIDS"
if
ZEO
:
host
=
ZEO
.
get
(
'
ZEO_
SERVER_NAME'
,
'localhost'
)
port
=
ZEO
[
'
ZEO_
SERVER_PORT'
]
host
=
ZEO
.
get
(
'SERVER_NAME'
,
'localhost'
)
port
=
ZEO
[
'SERVER_PORT'
]
pids
=
''
if
_check_for_service
(
host
,
port
):
if
host
==
'localhost'
:
...
...
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