1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/dns/noip/files/noip.sh
Kirill Ponomarev b41e4b82b7 - Update to version 2.0.12
- Approved by maintainer

PR:		56180
Submitted by:	Dan Larsson <ports@tyfon.net>
2003-10-05 19:59:13 +00:00

20 lines
364 B
Bash

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