freebsd-ports/net/noip/files/noip.sh
Ying-Chieh Liao 4742a297e4 add noip 1.6
No-IP.com's dynamic DNS update client

PR:		36543
Submitted by:	Eyal Soha <esoha@attbi.com>
2002-06-25 09:32:29 +00:00

19 lines
360 B
Bash

#!/bin/sh
case "$1" in
start)
if [ -x %%PREFIX%%/bin/noip -a -f %%PREFIX%%/etc/no-ip.conf ]; then
echo -n ' noip';
su -m noip -c '%%PREFIX%%/bin/noip' 2> /dev/null > /dev/null
fi
;;
stop)
echo -n ' noip';
killall noip
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
exit 1
;;
esac
exit 0