2 description="ddclient Daemon for Alpine"
3 command="/usr/sbin/ddclient"
4 config_file="/etc/ddclient/ddclient.conf"
6 pidfile=$(grep -v '^\s*#' "${config_file}" | grep -i -m 1 pid= | awk -F '=' '{print $2}')
7 delay=$(grep -v '^\s*#' "${config_file}" | grep -i -m 1 "daemon" | awk -F '=' '{print $2}')
11 command_args="-daemon 300"
24 ebegin "Starting ddclient"
25 start-stop-daemon --start \
27 --pidfile "${pidfile}" \
34 ebegin "Stopping ddclient"
35 start-stop-daemon --stop --exec "${command}" \
36 --pidfile "${pidfile}"