1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/dns/ddclient/files/ddclient_force.in
Olli Hauer e3bea4f57f - add periodic daily script to force update
- connect to license framework
 - add special patch from glarkin to ensure daemon detach from tty,
   change some printf to use the warning function instead.

PR:		148586
Submitted by:	Chris Howey <howeyc _at_ gmail.com>
Approved by:	maintainer, glarkin (mentor)
2010-08-17 19:22:56 +00:00

29 lines
391 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# If there is a global system configuration file, suck it in.
#
if [ -r /etc/defaults/periodic.conf ]
then
. /etc/defaults/periodic.conf
source_periodic_confs
fi
case "$daily_ddclient_force_enable" in
[Yy][Ee][Ss])
echo
echo 'Forcing ddclient update:'
out=`%%PREFIX%%/sbin/ddclient -force`
echo "$out"
rc=0
;;
*)
rc=0
;;
esac
exit $rc