forked from Lainports/freebsd-ports
PR: ports/56727 Submitted by: Kimura Fuyuki <fuyuki@nigredo.org> Approved by: maintainer no response
19 lines
313 B
Bash
19 lines
313 B
Bash
#!/bin/sh
|
|
|
|
case "$1" in
|
|
start)
|
|
if [ -x %%PREFIX%%/sbin/ddclient ]; then
|
|
%%PREFIX%%/sbin/ddclient -daemon 300 && echo -n ' ddclient'
|
|
fi
|
|
;;
|
|
stop)
|
|
/bin/kill `cat /var/run/ddclient.pid`
|
|
echo -n ' ddclient'
|
|
;;
|
|
*)
|
|
echo ""
|
|
echo "Usage: `basename $0` { start | stop }"
|
|
echo ""
|
|
exit 64
|
|
;;
|
|
esac
|