#!/bin/bash

source ${CATTLE_HOME:-/var/lib/cattle}/common/scripts.sh

cd $(dirname $0)

chmod +x bin/rancher-metadata

mkdir -p content-home
mv bin content-home

stage_files

# Make sure that when node start is doesn't think it holds the config.sh lock
unset CATTLE_CONFIG_FLOCKER

if /etc/init.d/rancher-metadata status; then
    /etc/init.d/rancher-metadata restart
else
    /etc/init.d/rancher-metadata start
fi

#!/bin/bash

source ${CATTLE_HOME:-/var/lib/cattle}/common/scripts.sh

cd $(dirname $0)

chmod +x bin/rancher-metadata

mkdir -p content-home/etc/cattle/rancher-metadata
touch content-home/etc/cattle/rancher-metadata/http-reload
mv bin content-home

stage_files

# Make sure that when node start is doesn't think it holds the config.sh lock
unset CATTLE_CONFIG_FLOCKER

if /etc/init.d/rancher-metadata status; then
    /etc/init.d/rancher-metadata restart
else
    /etc/init.d/rancher-metadata start
fi

Add file to indicate http reload is available
Add file to indicate http reload is available
