#!/bin/sh
#
# $NetBSD: hetzner_ddns,v 0.2.2 2025/10/18 00:00:00 filiparag Exp $
#

# PROVIDE: hetzner_ddns
# REQUIRE: LOGIN

$_rc_subr_loaded . /etc/rc.subr

export PATH="$PATH:/usr/local/bin"

name="hetzner_ddns"
rcvar=$name
command="/usr/local/bin/${name}"
command_args="-V -d -c /usr/local/etc/${name}.json -l /var/log/${name}.log -P /var/run/${name}.pid"
required_files="/usr/local/etc/${name}.json"
pidfile="/var/run/${name}.pid"
procname="/bin/sh"

run_rc_command "$1"
