freebsd-ports/net/ddclient/files/ddclient.sh.sample
2001-08-26 16:07:09 +00:00

18 lines
296 B
Bash

#!/bin/sh
case "$1" in
start)
if [ -x %%PREFIX%%/sbin/ddclient ]; then
%%PREFIX%%/sbin/ddclient -daemon 300 && echo -n ' ddclient'
fi
;;
stop)
/usr/bin/killall ddclient
echo -n ' ddclient'
*)
echo ""
echo "Usage: `basename $0` { start | stop }"
echo ""
exit 64
;;
esac