diff options
Diffstat (limited to 'dns/noip/files/noip.sh')
-rw-r--r-- | dns/noip/files/noip.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dns/noip/files/noip.sh b/dns/noip/files/noip.sh new file mode 100644 index 000000000000..eca1af8323b8 --- /dev/null +++ b/dns/noip/files/noip.sh @@ -0,0 +1,19 @@ +#!/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 |