mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix sysvinit upstart detection and give it a pretty message
This commit is contained in:
parent
f26da9638f
commit
bb76157d24
1 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,8 @@ if [ -f /etc/default/$BASE ]; then
|
|||
. /etc/default/$BASE
|
||||
fi
|
||||
|
||||
if [ "$1" = start ] && which initctl >/dev/null && initctl version | grep -q upstart; then
|
||||
if which initctl >/dev/null && initctl version | grep -q upstart; then
|
||||
log_failure_msg "Docker is managed via upstart, try using service $BASE $1"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue