Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
75e1c41b
Commit
75e1c41b
authored
Feb 28, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stating that a new process has been started but old one is still running is not a warning.
parent
dcf75119
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
slapos/grid/utils.py
slapos/grid/utils.py
+2
-2
No files found.
slapos/grid/utils.py
View file @
75e1c41b
...
@@ -146,8 +146,8 @@ def setRunning(pid_file):
...
@@ -146,8 +146,8 @@ def setRunning(pid_file):
# XXX This could use psutil library.
# XXX This could use psutil library.
if
pid
is
not
None
and
os
.
path
.
exists
(
"/proc/%s"
%
pid
):
if
pid
is
not
None
and
os
.
path
.
exists
(
"/proc/%s"
%
pid
):
# In case process is present, ignore.
# In case process is present, ignore.
logger
.
warning
(
'New slapos process started, but another slapos '
logger
.
info
(
'New slapos process started, but another slapos '
'process is aleady running with pid %s, exiting.'
%
pid
)
'process is aleady running with pid %s, exiting.'
%
pid
)
sys
.
exit
(
10
)
sys
.
exit
(
10
)
logger
.
info
(
'Existing pid file %r was stale one, overwritten'
%
pid_file
)
logger
.
info
(
'Existing pid file %r was stale one, overwritten'
%
pid_file
)
# Start new process
# Start new process
...
...
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