dns/ddclient: reload does not exist, status/stop/restart unreliable

The rc.d file needs to be changed in FreeBSD but for now work around
this in the easiest way possible.
This commit is contained in:
Franco Fichtner
2022-06-29 12:50:39 +02:00
parent 8e7ec17828
commit 30523766e8
@@ -6,30 +6,24 @@ type:script
message:starting ddclient
[stop]
command:/usr/local/etc/rc.d/ddclient stop
command:pkill -F /var/run/ddclient.pid 2> /dev/null; exit 0
type:script
message:stopping ddclient
[status]
command:/usr/local/etc/rc.d/ddclient status; exit 0
command:pgrep -qF /var/run/ddclient.pid && echo "ddclient is running" || echo "ddclient is not running"
type:script_output
message:get ddclient status
[restart]
command:
chmod 600 /usr/local/etc/ddclient.conf;
pkill -F /var/run/ddclient.pid 2> /dev/null;
/usr/local/etc/rc.d/ddclient restart
type:script
message:restarting ddclient
description:Restart ddclient service
[reload]
command:
chmod 600 /usr/local/etc/ddclient.conf;
/usr/local/etc/rc.d/ddclient reload
type:script
message:reload ddclient configuration
[force]
command:
chmod 600 /usr/local/etc/ddclient.conf;