Starten von Systemdiensten
Hallo!
Ich benutze Debian Etch und habe momentan ein Verständnis Problem.
"root@veneto:/etc/xinetd.d# atftpd --daemon --port 69 --tftpd-timeout
300 --retry-timeout 5 --mcast-port 1758 --mcast-addr
239.239.239.0-255 --mcast-ttl 1 --maxthread 100 --verbose=5 /srv/tftp"
Bringt folgendes Ergbnis:
"root@veneto:/etc/xinetd.d# ps ax | grep tftp
6132 ? Ss 0:00 atftpd --daemon --port 69 --tftpd-timeout
300 --retry-timeout 5 --mcast-port 1758 --mcast-addr
239.239.239.0-255 --mcast-ttl 1 --maxthread 100 --verbose=5 /srv/tftp
6134 pts/3 R+ 0:00 grep tftp"
< Leerzeile von mir eingefügt! >
"root@veneto:/etc/xinetd.d# /etc/init.d/atftpd start"
bringt folgendes Ergebnis:
"root@veneto:/etc/xinetd.d# ps ax | grep tftp
6166 pts/3 S+ 0:00 grep tftp"
Meine "/etc/init.d/atftpd" sieht wie folgt aus:
"#! /bin/sh
#
# atftpd - Script to launch atftpd server. Based on Skeleton.
#
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/atftpd
NAME=atftpd
DESC="Advanced Trivial FTP server"
USE_INETD=true
OPTIONS=""
test -f $DAEMON || exit 0
set -e
if [ -f /etc/default/atftpd ]; then
. /etc/default/atftpd
fi
if [ "$USE_INETD" = "true" ]; then
exit 0;
fi
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --oknodo --quiet --exec $DAEMON -- $OPTIONS
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --oknodo --quiet --exec $DAEMON
echo "$NAME."
;;
restart|reload|force-reload)
echo -n "Restarting $DESC: "
start-stop-daemon --stop --oknodo --quiet --exec $DAEMON
sleep 1
start-stop-daemon --start --oknodo --quiet --exec $DAEMON -- $OPTIONS
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
exit 1
;;
esac
exit 0"
Die zugehörige "/etc/default/atftpd" enthält genau die Optionen die ich auch
beim direkten Aufruf verwendet habe:
"USE_INETD=true
OPTIONS="--daemon --port 69 --tftpd-timeout 300 --retry-timeout
5 --mcast-port 1758 --mcast-addr 239.239.239.0-255 --mcast-ttl
1 --maxthread 100 --verbose=5 /srv/tftp""
Wieso scheint "atftpd --daemon --port 69 --tftpd-timeout 300 --retry-timeout
5 --mcast-port 1758 --mcast-addr 239.239.239.0-255 --mcast-ttl
1 --maxthread 100 --verbose=5 /srv/tftp" zu funktionieren
und "/etc/init.d/atftpd start" nicht?
Wie kann ich feststellen, woran der Aufruf über das init-Skript scheitert?
LG,
Leonhard.
PS: Eigentlich will ich ja "nur" mit FAI "spielen". Dafür benötige ich aber
einen funktionierenden tftpd. :-(
Reply to: