Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
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
Boxiang Sun
slapos.package
Commits
99362b2a
Commit
99362b2a
authored
Aug 27, 2012
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In cron, now check if samefile instead of same name
parent
b123a181
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
slapos-node/slaptest
slapos-node/slaptest
+5
-2
No files found.
slapos-node/slaptest
View file @
99362b2a
...
...
@@ -235,9 +235,12 @@ class CronLine:
def
check
(
self
,
config
,
logger
):
""" Check if all attributes are correctly set"""
if
self
.
config
!=
os
.
path
.
join
(
config
.
slapos_configuration
,
'slapos.cfg'
):
if
not
os
.
path
.
exists
(
self
.
config
):
logger
.
critical
(
"For %s command: slapos.cfg is %s should be in %s"
%
(
self
.
command
,
self
.
config
,
config
.
slapos_configuration
))
%
(
self
.
command
,
self
.
config
,
config
.
slapos_configuration
))
elif
not
os
.
path
.
samefile
(
self
.
config
,
os
.
path
.
join
(
config
.
slapos_configuration
,
'slapos.cfg'
)):
logger
.
critical
(
"For %s command: slapos.cfg is %s should be in %s"
%
(
self
.
command
,
self
.
config
,
config
.
slapos_configuration
))
if
self
.
pidfile
==
None
:
logger
.
warning
(
"For %s command: No pidfile"
%
(
self
.
command
))
...
...
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