#!/bin/sh
set -e

if command -v systemctl >/dev/null 2>&1; then
	systemctl daemon-reload >/dev/null 2>&1 || true
	if [ "$1" = "configure" ]; then
		systemctl enable uce.service >/dev/null 2>&1 || true
		systemctl restart uce.service >/dev/null 2>&1 || true
	fi
fi

exit 0
