Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
88251b95
Commit
88251b95
authored
Jan 29, 2003
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change runner template and filename so as to be specific to the ZEO
package.
parent
08f0d5b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/ZEO/mkzeoinst.py
src/ZEO/mkzeoinst.py
+6
-6
No files found.
src/ZEO/mkzeoinst.py
View file @
88251b95
...
...
@@ -20,9 +20,9 @@ Given an "instance home directory" <home> and some configuration
options (all of which have default values), create the following:
<home>/etc/zeo.conf -- ZEO config file
<home>/etc/
runner
.conf -- zdctl+zdrun config file
<home>/etc/
zeoctl
.conf -- zdctl+zdrun config file
<home>/var/ -- Directory for data files: Data.fs etc.
<home>/log/ -- Directory for log files: zeo.log and
runner
.log
<home>/log/ -- Directory for log files: zeo.log and
zeoctl
.log
<home>/bin/zeoctl -- start/stop script (a shim for zdctl.py)
The script will not overwrite existing files; instead, it will issue a
...
...
@@ -65,7 +65,7 @@ zeo_conf_template = """# ZEO configuration file
</eventlog>
"""
runner_conf_template
=
"""#
runner
configuration file
runner_conf_template
=
"""#
%(package)sctl
configuration file
<runner>
program %(server)s -C %(home)s/etc/%(package)s.conf
...
...
@@ -87,7 +87,7 @@ runner_conf_template = """# runner configuration file
<eventlog>
level info
<logfile>
path %(home)s/log/
runner
.log
path %(home)s/log/
%(package)sctl
.log
</logfile>
</eventlog>
"""
...
...
@@ -103,7 +103,7 @@ zdctl_template = """#!/bin/sh
# chkconfig: 345 90 10
# description: start a %(PACKAGE)s server
exec %(zdctl)s -C %(home)s/etc/
runner
.conf ${1+"$@"}
exec %(zdctl)s -C %(home)s/etc/
%(package)sctl
.conf ${1+"$@"}
"""
def
main
():
...
...
@@ -139,7 +139,7 @@ def main():
makedir
(
home
,
"log"
)
makedir
(
home
,
"bin"
)
makefile
(
zeo_conf_template
,
home
,
"etc"
,
"zeo.conf"
,
**
params
)
makefile
(
runner_conf_template
,
home
,
"etc"
,
"
runner
.conf"
,
**
params
)
makefile
(
runner_conf_template
,
home
,
"etc"
,
"
zeoctl
.conf"
,
**
params
)
makexfile
(
zdctl_template
,
home
,
"bin"
,
"zeoctl"
,
**
params
)
print
"All done."
...
...
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