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
7863035f
Commit
7863035f
authored
Jun 30, 1999
by
Michel Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correctly spell daemon.
parent
aba092e3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
19 deletions
+21
-19
lib/python/App/versionManager.dtml
lib/python/App/versionManager.dtml
+1
-1
lib/python/zLOG.py
lib/python/zLOG.py
+5
-4
lib/python/zdaemon.py
lib/python/zdaemon.py
+15
-14
No files found.
lib/python/App/versionManager.dtml
View file @
7863035f
...
...
@@ -19,7 +19,7 @@
<td valign=top><input type=checkbox name="versions:list"
value="<!--#var id-->"></td>
<td valign=top>
<a href="<!--#var SCRIPT_NAME-->/<!--#var id-->"><!--#var id--></a>
<a href="<!--#var SCRIPT_NAME-->/<!--#var id-->
/manage_workspace
"><!--#var id--></a>
</td>
</tr>
<!--#/in-->
...
...
lib/python/zLOG.py
View file @
7863035f
...
...
@@ -225,18 +225,18 @@ def stupid_log_write(subsystem, severity, summary, detail, error):
import
os
if
os
.
environ
.
has_key
(
'STUPID_LOG_FILE'
):
f
=
os
.
environ
[
'STUPID_LOG_FILE'
]
if
f
:
_stupid_dest
=
open
(
f
,
'a'
)
.
write
if
f
:
_stupid_dest
=
open
(
f
,
'a'
)
else
:
import
sys
_stupid_dest
=
sys
.
stderr
.
write
_stupid_dest
=
sys
.
stderr
else
:
_stupid_dest
=
_no_stupid_log
if
_stupid_dest
is
_no_stupid_log
:
return
_stupid_dest
(
_stupid_dest
.
write
(
"------
\
n
"
"%s %s %s %s
\
n
%s
\
n
"
"%s %s %s %s
\
n
%s"
%
(
log_time
(),
severity_string
(
severity
),
...
...
@@ -245,6 +245,7 @@ def stupid_log_write(subsystem, severity, summary, detail, error):
detail
,
)
)
_stupid_dest
.
flush
()
if
error
:
try
:
...
...
lib/python/zd
ea
mon.py
→
lib/python/zd
ae
mon.py
View file @
7863035f
...
...
@@ -142,8 +142,8 @@ import zLOG
#this is a bit of a hack so I dont have to change too much code
def
pstamp
(
message
,
sev
):
zLOG
.
LOG
(
"zd
ea
mon"
,
sev
,
(
"zd
ea
mon: %s: %s"
%
(
time
.
ctime
(
time
.
time
()),
message
)))
zLOG
.
LOG
(
"zd
ae
mon"
,
sev
,
(
"zd
ae
mon: %s: %s"
%
(
time
.
ctime
(
time
.
time
()),
message
)))
def
heartbeat
():
print
'tha-thump'
...
...
@@ -174,21 +174,22 @@ def forkit(attempts = FORK_ATTEMPTS):
return
pid
def
run
(
argv
,
pidfile
=
''
):
if
os
.
environ
.
has_key
(
'ZD
EA
MON_MANAGED'
):
if
os
.
environ
.
has_key
(
'ZD
AE
MON_MANAGED'
):
# We're the child at this point. Don't ask. :/
sys
.
stdin
.
close
()
sys
.
stdout
.
close
()
sys
.
stderr
.
close
()
try
:
sys
.
stdin
=
open
(
'/dev/null'
,
"r"
)
sys
.
stdout
=
open
(
'/dev/null'
,
"r+"
)
sys
.
stderr
=
open
(
'/dev/null'
,
"r+"
)
except
:
zLOG
.
LOG
(
"z2"
,
zLOG
.
ERROR
,
"couldn't close standard files"
)
## sys.stdin.close()
## sys.stdout.close()
## sys.stderr.close()
## try:
## sys.stdin = open('/dev/null', "r")
## sys.stdout = open('/dev/null', "r+")
## sys.stderr = open('/dev/null', "r+")
## except:
## zLOG.LOG("z2", zLOG.ERROR, "couldn't close standard files")
return
os
.
environ
[
'ZD
EA
MON_MANAGED'
]
=
'TRUE'
os
.
environ
[
'ZD
AE
MON_MANAGED'
]
=
'TRUE'
while
1
:
lastt
=
time
.
time
()
try
:
...
...
@@ -206,7 +207,7 @@ def run(argv, pidfile=''):
pf
.
write
((
"%s"
%
os
.
getpid
()))
pf
.
close
()
while
1
:
while
1
:
if
not
BEAT_DELAY
:
p
,
s
=
os
.
waitpid
(
pid
,
0
)
else
:
...
...
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