--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: ipcheck: I have created a /etc/init.d/ipcheck file.
- From: Paul Andreassen <p@andreassen.com.au>
- Date: 19 Jul 2002 22:43:25 +1000
- Message-id: <1027082605.4652.10.camel@Midkemia>
Package: ipcheck
Version: 0.177-1
Severity: wishlist
To use create a directory /var/lib/ipcheck/
Put in /etc/ipcheck.conf your username, password and hostnames.
Set your options in /etc/init.d/ipcheck
Setting "--makedat" in /etc/init.d/ipcheck the first time only.
Execute "update-rc.d ipcheck defaults" so it runs on boot.
-- System Information
Debian Release: 3.0
Kernel Version: Linux Midkemia 2.4.16 #1 Wed Dec 19 23:38:52 EST 2001
i686 unknown
Versions of the packages ipcheck depends on:
ii python 2.1.3-3 An interactive object-oriented
scripting lan
#! /bin/sh
#
# ipcheck File to be put in /etc/init.d/ to execute ipcheck.
# ipcheck is a dynamic DNS client that sends your ip
# to a server which assocates it with hostnames.
# An example of a service provider is dyndns.org
# ipcheck should be run everytime your ip address
# changes or every 25 days.
#
# This file based on skeleton
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian GNU/Linux
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#
# Version: @(#)skeleton 1.9.1 08-Apr-2002 miquels@cistron.nl
# ipcheck 1.0.0 19-Jul-2002 p@andreassen.com.au
#
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/ipcheck
NAME=ipcheck
DESC="dynamic DNS client"
OPTIONS="-T password -w"
# must be run with "--makedat" first time
# debug with verbose option "-v"
test -x $DAEMON || exit 0
set -e
case "$1" in
start)
echo -n "Starting $DESC: $NAME"
$DAEMON --syslog -d /var/lib/ipcheck $OPTIONS --acctfile=/etc/ipcheck.conf
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME "
# -o requires service provider consent
# $DAEMON --syslog -d /var/lib/ipcheck -p 8245 $OPTIONS -o --acctfile /etc/ipcheck.conf
echo "."
;;
#reload)
#
# If the daemon can reload its config files on the fly
# for example by sending it SIGHUP, do it here.
#
# If the daemon responds to changes in its config file
# directly anyway, make this a do-nothing entry.
#
# echo -n "Reloading $DESC configuration..."
# start-stop-daemon --stop --signal 1 --quiet --pidfile \
# /var/run/$NAME.pid --exec $DAEMON
# echo "done."
#;;
restart|force-reload)
#
# If the "reload" option is implemented, move the "force-reload"
# option to the "reload" entry above. If not, "force-reload" is
# just the same as "restart".
#
echo -n "Restarting $DESC: $NAME"
$DAEMON --syslog -d /var/lib/ipcheck -p 8245 $OPTIONS --acctfile /etc/ipcheck.conf
echo "."
;;
*)
N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
--- End Message ---