#!/bin/bash
set -e

# Install DLM agent
apt-get install -y ./moxa-dlm-agent*.deb

# Schedule daemon reload and service restart after 5 seconds
systemd-run --on-active=5 \
    bash -c 'systemctl daemon-reload && systemctl restart moxa-dlm-agent'

exit 0