File: init.d

package info (click to toggle)
no-ip 2.1.1-4%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 272 kB
  • ctags: 282
  • sloc: ansic: 2,133; xml: 167; sh: 106; makefile: 71
file content (36 lines) | stat: -rw-r--r-- 804 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#! /bin/sh
# /etc/init.d/no-ip2.sh

# Supplied by no-ip.com
# Modified for Debian GNU/Linux by Eivind L. Rygge <eivind@rygge.org>
# Modified too by Otavio Salvador <otavio@debian.org>

DAEMON=/usr/bin/no-ip
NAME=no-ip

test -x $DAEMON || exit 0

case "$1" in
    start)
    echo -n "Starting dynamic address update: "
    start-stop-daemon --start --exec $DAEMON
    echo "no-ip."
    ;;
    stop)
    echo -n "Shutting down dynamic address update: "
    start-stop-daemon --stop --exec $DAEMON
    echo "no-ip."
    ;;

    force-reload|restart)
    echo -n "Restarting dynamic address update: "
    start-stop-daemon --stop --oknodo --retry 30 --exec $DAEMON
    start-stop-daemon --start --exec $DAEMON
    echo "no-ip."
    ;;

    *)
    echo "Usage: $0 {start|stop|restart}"
    exit 1
esac
exit 0