16 lines
268 B
Bash
Executable File
16 lines
268 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
# Start is guaranteed to be called once when after the unit is installed
|
|
# *AND* once every time a machine is rebooted.
|
|
|
|
if [ ! -f $CHARM_DIR/.unit-state ]
|
|
then
|
|
exit 0;
|
|
fi
|
|
|
|
service docker restart
|
|
service proxy restart
|
|
service kubelet restart
|