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
b21f1895
Commit
b21f1895
authored
Mar 17, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always define INSTANCE in the generated files and refer to that, to
make it easier to re-locate an instance.
parent
b9870462
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
src/ZEO/mkzeoinst.py
src/ZEO/mkzeoinst.py
+14
-8
No files found.
src/ZEO/mkzeoinst.py
View file @
b21f1895
...
...
@@ -45,6 +45,8 @@ import getopt
zeo_conf_template
=
"""# ZEO configuration file
%%define INSTANCE %(home)s
<zeo>
address %(port)d
read-only false
...
...
@@ -54,40 +56,42 @@ zeo_conf_template = """# ZEO configuration file
</zeo>
<filestorage 1>
path
%(home)s
/var/Data.fs
path
$INSTANCE
/var/Data.fs
</filestorage>
<eventlog>
level info
<logfile>
path
%(home)s
/log/zeo.log
path
$INSTANCE
/log/zeo.log
</logfile>
</eventlog>
"""
runner_conf_template
=
"""# %(package)sctl configuration file
%%define INSTANCE %(home)s
<runner>
program %(server)s -C
%(home)s
/etc/%(package)s.conf
socket-name
%(home)s
/etc/%(package)s.zdsock
program %(server)s -C
$INSTANCE
/etc/%(package)s.conf
socket-name
$INSTANCE
/etc/%(package)s.zdsock
daemon true
forever false
backoff-limit 10
exit-codes 0, 2
directory
%(home)s
directory
$INSTANCE
default-to-interactive true
# user zope
python %(python)s
zdrun %(zdrun)s
# 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.
logfile
%(home)s
/log/%(package)s.log
logfile
$INSTANCE
/log/%(package)s.log
</runner>
<eventlog>
level info
<logfile>
path
%(home)s
/log/%(package)sctl.log
path
$INSTANCE
/log/%(package)sctl.log
</logfile>
</eventlog>
"""
...
...
@@ -103,7 +107,9 @@ zdctl_template = """#!/bin/sh
# chkconfig: 345 90 10
# description: start a %(PACKAGE)s server
exec %(zdctl)s -C %(home)s/etc/%(package)sctl.conf ${1+"$@"}
INSTANCE='%(home)s'
exec %(zdctl)s -C "$INSTANCE/etc/%(package)sctl.conf" ${1+"$@"}
"""
def
main
():
...
...
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