Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
agent
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
7
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bace35cc
authored
a year ago
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
timo fix
parent
72cef16b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
watchdog-winservice.py
+3
-2
win_exe/watchdog-winservice.exe
+0
-0
No files found.
watchdog-winservice.py
View file @
bace35cc
...
...
@@ -33,8 +33,8 @@ def watch():
timo_base
=
20
timo
=
timo_base
sleep
(
6
*
timo
)
# boot process may have triggered the agent, so we are patient
while
True
:
sleep
(
timo
)
# boot process may already started it, so we waiting frist
if
not
check_service
(
service_name
):
logger
.
info
(
"Service
%
s is not running."
,
service_name
)
try
:
...
...
@@ -46,7 +46,8 @@ def watch():
logger
.
exception
(
"Cant start service
%
s new timo:
%
s"
%
(
service_name
,
timo
))
if
stopped
:
return
sleep
(
timo
)
class
AppServerSvc
(
win32serviceutil
.
ServiceFramework
):
_svc_name_
=
"circle-watchdog"
...
...
This diff is collapsed.
Click to expand it.
win_exe/watchdog-winservice.exe
View file @
bace35cc
No preview for this file type
This diff is collapsed.
Click to expand it.
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