mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user