Robert Couture
2004-06-18 07:09:20 UTC
Hello Jon.
17 Jun 04 14:14, you wrote to all:
JW|> Thanks for any help!
I am running it on start up using this:
/ect/init.d/binkd
=== Cut ===
#! /bin/bash
#
# BinkD Start/Stop the BinkD Daemon.
#
# Source function library.
if [ -f /etc/init.d/functions ] ; then
. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
. /etc/rc.d/init.d/functions
else
exit 0
fi
RETVAL=0
# See how we were called.
prog="BinkD"
start() {
echo -n $"Starting $prog: "
daemon --user fido /opt/fido/bin/binkd /opt/fido/etc/binkd.cfg -D -C -q
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/binkd
return $RETVAL
}
stop() {
echo -n $"Stopping $prog: "
killproc binkd
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/binkd
return $RETVAL
}
restart() {
stop
start
}
reload() {
echo -n $"Reloading BinkD daemon configuration: "
killproc binkd -HUP
retval=$?
echo
return $RETVAL
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
reload)
reload
;;
condrestart)
[ -f /var/lock/subsys/binkd ] && restart || :
;;
*)
echo $"Usage: $0 {start|stop|reload|restart|condrestart}"
exit 1
esac
exit $?
=== Cut ===
Now this is on a Fedora Core 2 machine (upgraded from a RH 9.0) so YMMV.
Just put the Start and Kill in the appropriate runtimes and you are set.
Of course, since I have never run Debian, I have no idea if this will also work
for you, but hopefully, it will at least point you in some direction.
Robert
17 Jun 04 14:14, you wrote to all:
JW|> Thanks for any help!
I am running it on start up using this:
/ect/init.d/binkd
=== Cut ===
#! /bin/bash
#
# BinkD Start/Stop the BinkD Daemon.
#
# Source function library.
if [ -f /etc/init.d/functions ] ; then
. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
. /etc/rc.d/init.d/functions
else
exit 0
fi
RETVAL=0
# See how we were called.
prog="BinkD"
start() {
echo -n $"Starting $prog: "
daemon --user fido /opt/fido/bin/binkd /opt/fido/etc/binkd.cfg -D -C -q
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/binkd
return $RETVAL
}
stop() {
echo -n $"Stopping $prog: "
killproc binkd
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/binkd
return $RETVAL
}
restart() {
stop
start
}
reload() {
echo -n $"Reloading BinkD daemon configuration: "
killproc binkd -HUP
retval=$?
echo
return $RETVAL
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
reload)
reload
;;
condrestart)
[ -f /var/lock/subsys/binkd ] && restart || :
;;
*)
echo $"Usage: $0 {start|stop|reload|restart|condrestart}"
exit 1
esac
exit $?
=== Cut ===
Now this is on a Fedora Core 2 machine (upgraded from a RH 9.0) so YMMV.
Just put the Start and Kill in the appropriate runtimes and you are set.
Of course, since I have never run Debian, I have no idea if this will also work
for you, but hopefully, it will at least point you in some direction.
Robert