Current section
Files
Jump to
Current section
Files
priv/templates/deploy-stop.eex
#!/usr/bin/env bash
# Stop services on target
set -e
# Config vars
export LANG="<%= env_lang %>"
SERVICE_NAME="<%= service_name %>"
# Stop service if it is running
if /bin/systemctl is-active "${SERVICE_NAME}"; then
/bin/systemctl stop "${SERVICE_NAME}"
fi