Fix init scripts for etcd. Fixes #383

Fixes Ubuntu 14.04 deployment of etcd.
This commit is contained in:
Matthew Mosesohn
2016-08-15 12:25:35 +03:00
parent 07c144d8a6
commit 0c953101ff
4 changed files with 18 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
#
### BEGIN INIT INFO
# Provides: kubelet
# Provides: kubelet
# Required-Start: $local_fs $network $syslog
# Required-Stop:
# Default-Start: 2 3 4 5
@@ -39,6 +39,8 @@ DAEMON_USER=root
#
do_start()
{
/usr/bin/docker rm -f kubelet &>/dev/null || true
sleep 1
# Return
# 0 if daemon has been started
# 1 if daemon was already running