2 # Copyright 1999-2014 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
6 PIDFILE="/run/ddclient/ddclient.pid"
15 checkpath -f -m 0600 -o ddclient:ddclient /etc/ddclient/ddclient.conf || return 1
16 checkpath -d -m 0700 -o ddclient:ddclient /run/ddclient || return 1
17 checkpath -d -m 0700 -o ddclient:ddclient /var/cache/ddclient || return 1
21 checkconfig || return 1
23 ebegin "Starting ${SVCNAME}"
24 start-stop-daemon --start \
27 --pidfile ${PIDFILE} \
28 --exec /usr/sbin/ddclient -- -pid=${PIDFILE}
33 ebegin "Stopping ${SVCNAME}"
34 start-stop-daemon --stop --signal USR1 --pidfile ${PIDFILE}