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
72cef16b
authored
Feb 11, 2024
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
watchdog fix
parent
6af82bb2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
watchdog-winservice.py
+2
-2
win_exe/watchdog-winservice.exe
+0
-0
No files found.
watchdog-winservice.py
View file @
72cef16b
...
...
@@ -31,9 +31,10 @@ def watch():
def
start_service
():
win32serviceutil
.
StartService
(
service_name
)
timo_base
=
1
0
timo_base
=
2
0
timo
=
timo_base
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
:
...
...
@@ -45,7 +46,6 @@ def watch():
logger
.
exception
(
"Cant start service
%
s new timo:
%
s"
%
(
service_name
,
timo
))
if
stopped
:
return
sleep
(
timo
)
class
AppServerSvc
(
win32serviceutil
.
ServiceFramework
):
...
...
win_exe/watchdog-winservice.exe
View file @
72cef16b
No preview for this file type
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