mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #15366 from rvesse/sysvinit-redhat-silent-fail
Fix silent failure in RedHat sysvinit script
This commit is contained in:
commit
c5733e6a20
1 changed files with 8 additions and 1 deletions
|
@ -41,7 +41,14 @@ prestart() {
|
|||
}
|
||||
|
||||
start() {
|
||||
[ -x $exec ] || exit 5
|
||||
if [ ! -x $exec ]; then
|
||||
if [ ! -e $exec ]; then
|
||||
echo "Docker executable $exec not found"
|
||||
else
|
||||
echo "You do not have permission to execute the Docker executable $exec"
|
||||
fi
|
||||
exit 5
|
||||
fi
|
||||
|
||||
check_for_cleanup
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue