#!/bin/sh
CONFIG="/etc/openntpd/ntpd.conf"
if [ "${METHOD}"X = "loopback"X ] || [ "${METHOD}"X = "none"X ]; then
	exit 0
fi
if pidof -q ntpd; then
	if [ "$MODE" != start ]; then
		exit 0
	fi
	if [ -d /run/systemd/system ]; then
		if [ "$(systemctl is-active openntpd.service)" = "active" ]; then
			systemctl restart --no-block openntpd.service || true
		fi
	else
		invoke-rc.d openntpd force-reload || true
	fi
fi
#EOF
