Current section

Files

Jump to
mix_deploy priv templates stop.eex
Raw

priv/templates/stop.eex

#!/bin/sh
# Stop services on target
set -e
# Config vars
SERVICE_NAME="<%= service_name %>"
# Stop service if it is running
if /bin/systemctl is-active "${SERVICE_NAME}"; then
/bin/systemctl stop "${SERVICE_NAME}"
fi