#!/bin/sh
set -e

case "$1" in
    configure)
        systemd-sysusers terractl.conf
        systemd-tmpfiles --create terractl.conf
        if [ -d /run/systemd/system ]; then
            systemctl daemon-reload || true
        fi
        # Running instances are not restarted; they pick up changes on their next start.
        ;;
esac

exit 0
