Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
cf786f03
Commit
cf786f03
authored
16 years ago
by
brinn
Browse files
Options
Downloads
Patches
Plain Diff
fix: spurious error messages when delting PIDFILE
SVN: 7462
parent
66333604
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
datamover/dist/datamover.sh
+7
-5
7 additions, 5 deletions
datamover/dist/datamover.sh
with
7 additions
and
5 deletions
datamover/dist/datamover.sh
+
7
−
5
View file @
cf786f03
...
@@ -176,7 +176,7 @@ case "$command" in
...
@@ -176,7 +176,7 @@ case "$command" in
n
=
0
n
=
0
while
[
$n
-lt
$MAX_LOOPS
]
;
do
while
[
$n
-lt
$MAX_LOOPS
]
;
do
sleep
1
sleep
1
if
[
!
-
e
$PIDFILE
]
;
then
if
[
!
-
f
$PIDFILE
]
;
then
break
break
fi
fi
if
[
-s
$STARTUPLOG
]
;
then
if
[
-s
$STARTUPLOG
]
;
then
...
@@ -202,7 +202,7 @@ case "$command" in
...
@@ -202,7 +202,7 @@ case "$command" in
echo
"(pid
$PID
)"
echo
"(pid
$PID
)"
fi
fi
else
else
test
-e
$PIDFILE
&&
rm
-f
$PIDFILE
test
-e
$PIDFILE
&&
rm
-f
$PIDFILE
2> /dev/null
echo
"FAILED"
echo
"FAILED"
echo
"startup log says:"
echo
"startup log says:"
cat
$STARTUPLOG
cat
$STARTUPLOG
...
@@ -221,13 +221,15 @@ case "$command" in
...
@@ -221,13 +221,15 @@ case "$command" in
if
[
$?
-eq
0
]
;
then
if
[
$?
-eq
0
]
;
then
echo
"(pid
$PID
)"
echo
"(pid
$PID
)"
# Shouldn't be necessary as Datamover deletes the file itself, but just to be sure
# Shouldn't be necessary as Datamover deletes the file itself, but just to be sure
test
-
e
$PIDFILE
&&
rm
$PIDFILE
test
-
f
$PIDFILE
&&
rm
$PIDFILE
2> /dev/null
else
else
echo
"FAILED"
echo
"FAILED"
fi
fi
else
else
rm
$PIDFILE
if
[
-f
$PIDFILE
]
;
then
echo
"(was dead - cleaned up pid file)"
rm
$PIDFILE
2> /dev/null
echo
"(was dead - cleaned up pid file)"
fi
fi
fi
else
else
echo
"(not running - nothing to do)"
echo
"(not running - nothing to do)"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment