Current section

Files

Jump to
mix_deploy priv templates restart.eex
Raw

priv/templates/restart.eex

#!/bin/sh
# Restart services on target
set -e
# Config vars
SERVICE_NAME="${SERVICE_NAME:-"<%= service_name %>"}"
/bin/systemctl restart "${SERVICE_NAME}"