Bekijk de volledige versie : Transmission geht nicht :(
Hallo an alle,
Ich habe Transmission nach Anleitung hier auf meinem Asus WL500gp installiert. Jedoch wenn ich watchdog_transmissin aufrufe, bekomme ich es wenn ich ps afx aufrufe nicht zu sehen. Hier der log:
[robert@router /]$ ps axf
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? RN 0:04 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
59 ? S 0:00 telnetd
64 ? S 0:00 httpd vlan1
70 ? S 0:00 syslogd -m 0 -O /tmp/syslog.log -S -l 7
71 ? S 0:00 klogd
72 ? S 0:00 dnsmasq
77 ? S 0:00 [khubd]
85 ? Ss 0:00 lpd
87 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
91 ? Ss 0:00 waveservermain
93 ? Ss 0:00 rcamdmain
100 ? Ss 0:00 pppd file /tmp/ppp/options.wan0
102 ? Ss 0:00 infosvr br0
103 ? Ss 0:00 watchdog
104 ? Ss 0:00 \_ ntp
123 ? S 0:00 dropbear
150 ? Ss 0:01 \_ dropbear
151 pts/0 Ss 0:00 \_ -sh
189 pts/0 R+ 0:00 \_ ps axf
128 ? S 0:00 [usb-storage-0]
129 ? S 0:00 [scsi_eh_0]
132 ? S 0:00 [kjournald]
138 ? S 0:00 [kjournald]
144 ? S 0:00 upnp -D -L br0 -W ppp0
Auf wenn ich im Browser http://192.168.1.1:8008/cgi-bin/transmission.cgi eingebe, bekomme ich die Meldung
Firefox kann keine Verbindung zu dem Server unter 192.168.1.1:8008 aufbauen.
Woran kann das liegen?
Braucht ihr noch anderes Input?
Ich hoffe es kann mir helfen
Danke im Voraus
Gruß Robert
Ich habe nun auch Samba nah der Anleitung installiert. Doch auch das funktioniert nicht. weiß jemand woran das liegen kann?
Hier ein ps afx;
[robert@router root]$ ps afx
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? SN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
59 ? S 0:00 telnetd
225 pts/0 Ss 0:00 \_ -sh
228 pts/0 R+ 0:00 \_ ps afx
64 ? S 0:08 httpd vlan1
71 ? S 0:00 klogd
72 ? S 0:00 dnsmasq
73 ? S 0:00 syslogd -m 0 -O /tmp/syslog.log -S -l 7
74 ? S 0:00 [khubd]
82 ? Ss 0:00 lpd
84 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
88 ? Ss 0:00 waveservermain
90 ? Ss 0:00 rcamdmain
97 ? Ss 0:00 pppd file /tmp/ppp/options.wan0
99 ? Ss 0:00 infosvr br0
100 ? Ss 0:00 watchdog
101 ? Ss 0:00 \_ ntp
110 ? S 0:00 dropbear
127 ? S 0:00 [usb-storage-0]
128 ? S 0:00 [scsi_eh_0]
133 ? S 0:00 [kjournald]
139 ? S 0:00 [kjournald]
190 ? S 0:00 upnp -D -L br0 -W ppp0
Transmission Config File:
# Configuration
# NOTE: no spaces around the = sign
# the config will be sourced (eg. . transmission.conf)
SOURCE=/tmp/hdd/torrent/source
WORK=/tmp/hdd/torrent/work
TARGET=/tmp/hdd/Torrent/target
#MAILFROM=torrent@somedomain.com
MAILOPT="-smail.somedomain.com -f"
USER=admin
GROUP=root
DATE_FORMAT="%d %h %H:%M"
# Transmission daemon variables
PIDFILE=/opt/var/run/transmission.pid
ACTIVE=/tmp/hdd/torrent/active-torrents.txt
HOME=/tmp/hdd/torrent
WATCHDOG=300
LISTENING_PORT=65534
# set SPEED in kB/s or -1 for unlimited
UPLOAD_SPEED=-1
DOWNLOAD_SPEED=-1
#UPLOAD_SPEED=41
#DOWNLOAD_SPEED=180
# change SYSLOG from /tmp/syslog.log to
SYSLOG=/opt/var/log/messages
#Uncomment the following for UPNP NAT traversal
#NAT_TRAVERSAL=--nat-traversal
# Seed torrent after completition (YES or NO)
AUTOSEED="YES"
# If the following limit is reached watchdog will not enqueue new one
MAX_ACTIVE_TORRENTS=10
# Creating graphical log of transfer with gnuplot
# can be very site specific issue. See transmission.cgi
# how this variables are used.
GNUPLOT=/opt/bin/gnuplot
GNUPLOT_COMMAND=${WORK}/transfer.gnuplot
GNUPLOT_DATA=${WORK}/transfer.data
GNUPLOT_OUTPUT=/opt/share/www/transfer.png
HTTP_IMG_LOCATION=../transfer.png
#TZ offset in seconds. Use +- sign. DST manually
TIMEZONE_OFFSET=+3600
#Colors for command line. # comment out if not needed
GREEN="\033[32;1m"
#NC="\033[0m"
#BACK_UP="\033[1K\033[0G"
NORMAL="\033[0m"
WARN="\033[33;1m"
BAD="\033[31;1m"
BOLD="\033[1m"
GOOD="\033[32;1m"
Das Samba Config File:
service swat
{
port = 901
socket_type = stream
wait = no
only_from = localhost 192.168.1.1/24
user = admin
server = /opt/sbin/swat
log_on_failure += USERID
disable = No
}
Ich hoffe es kann mir helfen.
Danke im Voraus
Gruß Robert
FastJack
09-10-2007, 08:17
Hi Robert,
sieht so aus als ob die installierten Programme nicht gestartet werden. Ist die rc.unslung vorhanden? Diese führt die Startscripte der einzelnen Programme unter /opt/etc/init.d aus. Wenn Du nach der Anleitung von Wengi installiert hast steht das da alles drin. Vielleicht vergessen +x zu setzen? Oder der klassische Vi Fehler, nicht vorher in den Insert Mode gegangen und nur die Hälfte des Scripts eingefügt?
Gruß Tobias
Tante Edit meint: Der Befehl heist übrigends transmission_watchdog um transmission händisch zu starten :)
Hallo Tobias,
rc.unslung ist vorhanden:
in /opt/etc/init.d/S??* ;do
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set start
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i start
;;
esac
done
Habs auch nochmal ausführbar gemacht.
Wenn ich transmission_watchdog händisch ausführe, und danach ps afx mache, erscheint das nicht. Woran kan das liegen?
Hier nochmal die Liste der aktiven Prozesse:
[robert@router root]$ ps afx
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? SN 0:01 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
59 ? S 0:01 telnetd
277 pts/1 Ss 0:00 \_ -sh
304 pts/1 R+ 0:00 \_ ps afx
64 ? S 0:08 httpd vlan1
71 ? S 0:00 klogd
72 ? S 0:00 dnsmasq
73 ? S 0:00 syslogd -m 0 -O /tmp/syslog.log -S -l 7
74 ? S 0:00 [khubd]
82 ? Ss 0:00 lpd
84 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
88 ? Ss 0:00 waveservermain
90 ? Ss 0:00 rcamdmain
97 ? Ss 0:00 pppd file /tmp/ppp/options.wan0
99 ? Ss 0:00 infosvr br0
100 ? Ss 0:00 watchdog
101 ? Ss 0:00 \_ ntp
110 ? S 0:00 dropbear
127 ? S 0:00 [usb-storage-0]
128 ? S 0:00 [scsi_eh_0]
133 ? S 0:00 [kjournald]
139 ? S 0:00 [kjournald]
268 ? S 0:02 upnp -D -L br0 -W ppp0
[robert@router root]$
Ich hab da echt keine Ahnung mehr.
Gruß robert
FastJack
10-10-2007, 07:11
Da haben wir denke ich den Fehler auch gefunden :)
Diene rc.unslug stimmt nur auf den ersten Blick.
da fehlt ein for am Anfang! Ohne das klappt natürlich eine for Schleife auch nicht.
for i in /opt/etc/init.d/S??* ;do
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set start
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i start
;;
esac
done
Ziemlich sicher so wie geschrieben, wenn man im Vi nicht vorher "i" drückt geht er nicht in den Insert Modus, sondern macht das erst bei dem ersten "i" das im Text kommt, und daher hast du das "for" vergessen.
Korrigier das mal und probiers dann nochmal. sicherheitshalber vielleicht auch nochmal die Anderen Scripte mit der HowTo abgleichen.
Den Befehl transmission_watchdog kennt er aber grundsätzlich? Probier mal trans in die Konsole eizugeben und drück dan ein paar mal die "Tab" Taste. Dann müsste er dir alle bekannten Befehle mit Trans am Anfang in der Konsole ausgeben.
Gruß Tobias
Edit: Noch ne Frage, nach welchem HowTo hast das installiert?
OK, danke :)
Ich werde das testen. Bin jetzt in der Schule, kann das erst am Abend machen.
Ja, den transmission_watchdog Befehl kennt er.
Ich hab nach dem HowTo hier im Sticky obe installiert.
gruß robert
Transmission läuft aber trotzdem nicht...
Die Befehle hat er mit trans:
[robert@router root]$ trans
transmission-cli transmission-proxy transmission_watchdog
transmission-daemon transmission-remote transmissiond
Transmission is stomit richtig installiert, doch es wird nicht ausgeführt :(
Welches Input kann ich noch geben?
Danke im Voraus
Gruß Robert
FastJack
10-10-2007, 17:47
Hi Robert, schade hatte gute hoffnung :)
/usr/local/sbin/post-boot ist vorhanden? die muss ja auch da sien damit die rc.unslug ausgeführt wird?
Also ich hab das auch anch wengis Tut installiert und bei mir hat alles wunderbar geklappt..
ich würde vorschlagen geh nochmal das tut durch, vergleich die dateien ob auch alles da is und richtig eingefügt etc. Sonst hab ich im Moment auch nicht mehr so viel Ideen.
Gruß Tobias
Ja ist vorhanden:
#!/bin/sh
dropbear
# test if USB disc has been attached
# if not - then insert needed modules
#
# die folgenden 4 Rauten entfernen, wenn eine USB-Platte angeschlossen ist. Beim WL-HDD nicht notwendig, da IDE.
if [ ! -d /dev/discs ]
then
insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s
fi
#Wait for /opt to mount
mount /dev/discs/disc0/part8 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done
# Activate swap
swapon /dev/discs/disc0/part7
# Directory for Data space
mkdir /tmp/hdd
# Mount the rest
mount /dev/discs/disc0/part9 /tmp/hdd
# Run all active services - active means starts with S
/opt/etc/init.d/rc.unslung
Ich werd mir alles nochmal genau anschauen.
Gruß Robert
Juhu es läuft :)
[robert@router root]$ ps axf
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? SN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
59 ? S 0:00 telnetd
152 pts/0 Ss 0:00 \_ -sh
192 pts/0 R+ 0:00 \_ ps axf
64 ? S 0:00 httpd vlan1
71 ? S 0:00 klogd
72 ? S 0:00 dnsmasq
73 ? S 0:00 syslogd -m 0 -O /tmp/syslog.log -S -l 7
74 ? S 0:00 [khubd]
82 ? Ss 0:00 lpd
84 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
88 ? Ss 0:00 waveservermain
90 ? Ss 0:00 rcamdmain
97 ? Ss 0:00 pppd file /tmp/ppp/options.wan0
99 ? Ss 0:00 infosvr br0
100 ? Ss 0:00 watchdog
101 ? Ss 0:00 \_ ntp
112 ? S 0:00 dropbear
129 ? S 0:00 [usb-storage-0]
130 ? S 0:00 [scsi_eh_0]
133 ? S 0:00 [kjournald]
139 ? S 0:00 [kjournald]
150 ? S 0:00 upnp -D -L br0 -W ppp0
183 ? Ss 0:00 transmissiond -p 65534 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pid /tmp/hdd/torrent/active-torrents.txt
186 ? S 0:00 \_ transmissiond -p 65534 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pid /tmp/hdd/torrent/active-torrents.txt
187 ? S 0:00 \_ transmissiond -p 65534 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pid /tmp/hdd/torrent/active-torrents.txt
188 ? S 0:00 \_ transmissiond -p 65534 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pid /tmp/hdd/torrent/active-torrents.txt
Das Webinterface geht aber noch icht (wenn ich http://192.168.1.1:8008/cgi-bin/transmission.cgi in den Browser eingebe)
Woran liegt denn das?
Gruß Robert
FastJack
11-10-2007, 06:58
glückwunsch Robert, woran hats gelegen?
Also das Webinterface wird über /opt/etc/init.d/S80busybox_httpd gestartet.
Das muss auf jedenfall vorhanden sein (sollte bei der Transmission installation angelegt wordne sein) dort wird der busybox http Server mit Listening Port 8008 gestartet so das Du dein Transmisson übers das Webinterface kontrollieren kanns.
Vielleicht hilft Dir das schon weiter.
Gruß Tobias
In einem Skript, hatt ich einen ähnlichen Copy&Paste Fehler.
Hier die /opt/etc/init.d/S80busybox_httpd:
#!/bin/sh
PATH=/sbin:/bin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin
# Uncomment path to busybox httpd to enable startup
BUSYBOX_HTTPD=/usr/sbin/busybox_httpd
HTTPD_CONFIG=/opt/etc/httpd.conf
LISTENING_PORT=8008
INDEX=/opt/share/www/index.html
check_config(){
if [ ! -r ${HTTPD_CONFIG} ]; then
echo "Creating default ${HTTPD_CONFIG}"
cat > ${HTTPD_CONFIG} << __EOF__
# httpd.conf has the following format:
#
# A:172.20. # Allow address from 172.20.0.0/16
# A:10.0.0.0/25 # Allow any address from 10.0.0.0-10.0.0.127
# A:10.0.0.0/255.255.255.128 # Allow any address that previous set
# A:127.0.0.1 # Allow local loopback connections
# D:* # Deny from other IP connections
# /cgi-bin:foo:bar # Require user foo, pwd bar on urls starting with /cgi-bin/
# /adm:admin:setup # Require user admin, pwd setup on urls starting with /adm/
# /adm:toor:PaSsWd # or user toor, pwd PaSsWd on urls starting with /adm/
# .au:audio/basic # additional mime type for audio.au files
#
# A/D may be as a/d or allow/deny - first char case insensitive
# Deny IP rules take precedence over allow rules.
#
#
# The Deny/Allow IP logic:
#
# - Default is to allow all. No addresses are denied unless
# denied with a D: rule.
# - Order of Deny/Allow rules is significant
# - Deny rules take precedence over allow rules.
# - If a deny all rule (D:*) is used it acts as a catch-all for unmatched
# addresses.
# - Specification of Allow all (A:*) is a no-op
#
# Example:
# 1. Allow only specified addresses
# A:172.20 # Allow any address that begins with 172.20.
# A:10.10. # Allow any address that begins with 10.10.
# A:127.0.0.1 # Allow local loopback connections
# D:* # Deny from other IP connections
#
# 2. Only deny specified addresses
# 2. Only deny specified addresses
# D:1.2.3. # deny from 1.2.3.0 - 1.2.3.255
# D:2.3.4. # deny from 2.3.4.0 - 2.3.4.255
# A:* # (optional line added for clarity)
#
# If a sub directory contains a config file it is parsed and merged with
# any existing settings as if it was appended to the original configuration.
#
# subdir paths are relative to the containing subdir and thus cannot
# affect the parent rules.
#
# Note that since the sub dir is parsed in the forked thread servicing the
# subdir http request, any merge is discarded when the process exits. As a
# result, the subdir settings only have a lifetime of a single request.
#
A:*
#/cgi-bin:${USER}:password
.au:audio/basic
.asp:text/html
__EOF__
fi
}
start() {
if [ ! -x "${BUSYBOX_HTTPD}" ]; then
echo "busybox httpd ${BUSYBOX_HTTPD} not started."
exit 2
fi
check_config
echo -n "Starting busybox httpd at port ${LISTENING_PORT} ... "
${BUSYBOX_HTTPD} -c ${HTTPD_CONFIG} -p ${LISTENING_PORT} -h /opt/share/www
echo "done"
}
stop() {
echo -n "Shutting down busybox httpd... "
killall busybox_httpd
echo "done"
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 1
start
;;
*)
echo "Usage: $0 (start|stop|restart)"
exit 1
;;
esac
An der hab ich nichts geändert. Muss ich im Webinterface noch was einstellen?
Gruß Robert
FastJack
11-10-2007, 17:18
ne musst da auch nichts einstellen. Was passiert wenn Du im init.d
./S80busybox_httpd start eingibst?
220 ? S 0:00 /usr/sbin/busybox_httpd -c /opt/etc/httpd.conf -p 8008 -h /opt/share/www
sollte dann im ps axf auftauchen. Wenn nicht kontrollieren ob busybox_httpd überhaupt da ist im /usr/sbin.
So jetzt ists gestartet :) DANKE
Im Webinterface bekomme ich aber. syslog: /opt/var/log/messages unavailable for transfer stats!
Dan nochwas, ich möchte, dass das ganze nun auch nach nem reboot startet. Dann muss ich das ins post-boot skript schreiben, oder?
Gruß Robert
So Syslog geht jetzt richtig, nur Samba will noch nicht :(
Hier die Samba Konfigurationsdatei:
service swat
{
port = 901
socket_type = stream
wait = no
only_from = localhost 192.168.1.10/24
user = admin
server = /opt/sbin/swat
log_on_failure += USERID
disable = No
}
Gruß Robert
FastJack
11-10-2007, 20:10
So Syslog geht jetzt richtig, nur Samba will noch nicht :(
Hier die Samba Konfigurationsdatei:
service swat
{
port = 901
socket_type = stream
wait = no
only_from = localhost 192.168.1.10/24
user = admin
server = /opt/sbin/swat
log_on_failure += USERID
disable = No
}
Gruß Robert
das hast Du falsch verstanden, ist aber auch nciht ganz so ausführlich erklärt.
Die Zeile
only_from = localhost 192.168.1.10/24
muss bei Dir heisen:
only_from = localhost 192.168.1.0/24
Änder das mal und starte Samba neu.
Der automatische start von busybox_http sollte eigentlich ja über die rc.unslug passieren.
Gruß Tobias
Danke für den Tipp.
Wie starte ich Samba manuell ./S80samba?
Denn automatisch wird es nicht gestartet.
Auch transmission_watchdog und S80busybox_httpd starten nicht automatisch.
Gruß Robert
FastJack
12-10-2007, 07:13
ja, Samba startest Du Manuell darüber. Swat widerrum (die Weboberfläche) wird über das xinet gesteuert (is ja auch in dem Howto gesagt worden das sol man mitinstallieren).
Wenn Die noch nicht automatisch bei Dir gestartet werden, dann muss irgendwas mit den Scripten noch nicht passen oder die dateien sind nciht ausführbar. Normal leuft das so ab Der Router startet liest die Post-boot, da kommt er am shcluss zur rc.unslug die er aufruft, dieses Script startet dann wiederum alle mit S beginnenden Scripte im /opt/etc/init.d Verzeichniss.
Schwer zu sagen aus der Entferung warum das bei Dir nicht automatisch geht.
Aber in diese Richtung würde ich mal schauen.
Mahlzeit.
Für mich sieht das aus, als würde rc.unslung nicht gestartet.
post-boot überprüfen, ob der Aufruf drin ist und checken, ob die Datei ausführbar ist.
wengi
Hallo,
post boot:
#!/bin/sh
dropbear
# test if USB disc has been attached
# if not - then insert needed modules
#
# die folgenden 4 Rauten entfernen, wenn eine USB-Platte angeschlossen ist. Beim
if [ ! -d /dev/discs ]
then
insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s
fi
#Wait for /opt to mount
mount /dev/discs/disc0/part8 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done
# Activate swap
swapon /dev/discs/disc0/part7
# Directory for Data space
mkdir /tmp/hdd
# Mount the rest
mount /dev/discs/disc0/part9 /tmp/hdd
# Run all active services - active means starts with S
/opt/etc/init.d/rc.unslung
Wenn ich rc.unsung manuell starte bekomm ich die Meldung:
[robert@router root]$ /opt/etc/init.d/rc.unslung
[robert@router root]$ /opt/etc/init.d/rc.unslung: /opt/etc/init.d/rc.unslung: 1: Syntax error: word unexpected (expecting "do")
-sh: Syntax error: "(" unexpected
Warum kann ch das Skript nicht ausführen?
Wenn ich das Skript S80samba aus dem Verzeichnis /opt/etc/init.d ausführe, schein Samba2 am laufen zu sein:
[robert@router init.d]$ ps afx
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? SN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
59 ? S 0:00 telnetd
64 ? S 0:00 httpd vlan1
70 ? S 0:00 syslogd -m 0 -O /tmp/syslog.log -S -l 7
71 ? S 0:00 klogd
72 ? S 0:00 dnsmasq
77 ? S 0:00 [khubd]
85 ? Ss 0:00 lpd
87 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
91 ? Ss 0:00 waveservermain
93 ? Ss 0:00 rcamdmain
101 ? Ss 0:00 pppd file /tmp/ppp/options.wan0
103 ? Ss 0:00 infosvr br0
104 ? Ss 0:00 watchdog
107 ? Ss 0:00 \_ ntp
406 ? Ss 0:00 \_ ntpclient -h time.nist.gov -i 3 -l -s
114 ? S 0:00 dropbear
215 ? Ss 0:01 \_ dropbear
218 pts/0 Ss 0:00 \_ -sh
408 pts/0 R+ 0:00 \_ ps afx
130 ? S 0:00 upnp -D -L br0 -W ppp0
132 ? S 0:00 [scsi_eh_0]
131 ? S 0:00 [usb-storage-0]
141 ? S 0:00 [kjournald]
147 ? S 0:00 [kjournald]
301 ? Ss 0:00 transmissiond -p 65534 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pid /tmp/hdd/torrent/active-torrents.txt
304 ? S 0:00 \_ transmissiond -p 65534 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pid /tmp/hdd/torrent/active-torrents.txt
305 ? S 0:00 \_ transmissiond -p 65534 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pid /tmp/hdd/torrent/active-torrents.txt
306 ? S 0:00 \_ transmissiond -p 65534 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pid /tmp/hdd/torrent/active-torrents.txt
354 ? S 0:00 /usr/sbin/busybox_httpd -c /opt/etc/httpd.conf -p 8008 -h /opt/share/www
364 ? Ss 0:00 /opt/sbin/smbd -D
366 ? Ss 0:00 /opt/sbin/nmbd -D
Doch führe ich das Skript S10xinetd aus dem gleichen Verzeichnis aus, pasiert gar nichts. Woran kannd das liegen?
Gruß Robert
FastJack
13-10-2007, 17:27
post nochmal deine rc.unslug. Hast nach wie vor da noch nen Fehler drin.
Wenn der Weg ist sollte es aber dann auch gehen mir dem Autostart.
Wenn Du xinet startest sollte folgendes kommen per ps -ef
admin 3966 1 0 Oct11 ? 00:00:11 /opt/sbin/xinetd
Wenn ich xinetd manuell ausführe, passiert gar nichts:
[robert@router root]$ xinetd
[robert@router root]$ ps -ef
UID PID PPID C STIME TTY TIME CMD
robert 1 0 0 00:59 ? 00:00:01 /sbin/init
robert 2 1 0 00:59 ? 00:00:00 [keventd]
robert 3 1 0 00:59 ? 00:00:05 [ksoftirqd_CPU0]
robert 4 1 0 00:59 ? 00:00:00 [kswapd]
robert 5 1 0 00:59 ? 00:00:00 [bdflush]
robert 6 1 0 00:59 ? 00:00:00 [kupdated]
robert 7 1 0 00:59 ? 00:00:00 [mtdblockd]
robert 59 1 0 01:00 ? 00:00:00 telnetd
robert 64 1 0 01:00 ? 00:00:11 httpd vlan1
robert 70 1 0 01:00 ? 00:00:00 syslogd -m 0 -O /tmp/syslog.log -S -l 7
nobody 71 1 0 01:00 ? 00:00:00 dnsmasq
robert 72 1 0 01:00 ? 00:00:00 klogd
robert 77 1 0 01:00 ? 00:00:00 [khubd]
robert 85 1 0 01:00 ? 00:00:00 lpd
robert 87 1 0 01:00 ? 00:00:00 p9100d -f /dev/usb/lp0 0
robert 90 1 0 01:00 ? 00:00:00 waveservermain
robert 92 1 0 01:00 ? 00:00:00 rcamdmain
robert 98 1 0 01:00 ? 00:00:00 pppd file /tmp/ppp/options.wan0
robert 100 1 0 01:00 ? 00:00:00 infosvr br0
robert 101 1 0 01:00 ? 00:00:12 watchdog
robert 104 101 0 01:00 ? 00:00:03 ntp
robert 119 1 0 01:00 ? 00:00:00 dropbear
robert 125 1 0 01:00 ? 00:00:00 upnp -D -L br0 -W ppp0
robert 131 1 0 01:00 ? 00:00:00 [usb-storage-0]
robert 132 1 0 01:00 ? 00:00:00 [scsi_eh_0]
robert 136 1 0 01:00 ? 00:00:00 [kjournald]
robert 142 1 0 01:00 ? 00:00:00 [kjournald]
robert 187 1 0 01:01 ? 00:00:00 transmissiond -p 65534 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pid /tmp/hdd/torrent/active-torrents.txt
robert 190 187 0 01:01 ? 00:00:00 transmissiond -p 65534 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pid /tmp/hdd/torrent/active-torrents.txt
robert 191 190 0 01:01 ? 00:00:00 transmissiond -p 65534 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pid /tmp/hdd/torrent/active-torrents.txt
robert 192 190 0 01:01 ? 00:00:00 transmissiond -p 65534 -w 300 -u -1 -d -1 -i /opt/var/run/transmission.pid /tmp/hdd/torrent/active-torrents.txt
robert 274 1 0 01:06 ? 00:00:00 /usr/sbin/busybox_httpd -c /opt/etc/httpd.conf -p 8008 -h /opt/share/www
robert 5745 119 2 08:35 ? 00:00:00 dropbear
robert 5746 5745 0 08:35 pts/0 00:00:00 -sh
robert 5758 104 1 08:35 ? 00:00:00 ntpclient -h time.nist.gov -i 3 -l -s
robert 5759 5746 0 08:35 pts/0 00:00:00 ps -ef
[robert@router root]$
Hier die rc.unslung:
for in /opt/etc/init.d/S??* ;do
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set start
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i start
;;
esac
done
Gruß Robert
FastJack
13-10-2007, 23:30
for i in /opt/etc/init.d/S??* ;do
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set start
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i start
;;
esac
done
hier nochmal richtig bei dir fehlt einiges...
unter opt/etc/init.d
vi rc.unslug am besten davor die alte löschen mit
rm rc.unslug dann im vi in den einfüge Modus gehen mit "i" dann den obigen Text einfügen. Denke dann sollte es auch starten. Wegen Xinet, les doch nochmal den Abschnitt 10 da is nochmal alles bechrieben bei Wengis tut.
Gruß Tobias
Hallo,
danke für den Tipp. jetzt geht schon einiges. Das Webinterface vom transmission und samba werden gestartet. Transmission und Xinedt aber nicht.
Transmission kann ich manuell starten. Xinetd aber nicht :(
Soll ich den Aufruf von transmission in das post boot Skript schrieben?
[robert@router root]$ ps afx
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? SN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
59 ? S 0:00 telnetd
64 ? S 0:00 httpd vlan1
71 ? S 0:00 klogd
72 ? S 0:00 dnsmasq
77 ? S 0:00 [khubd]
85 ? Ss 0:00 lpd
87 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
91 ? Ss 0:00 waveservermain
93 ? Ss 0:00 rcamdmain
100 ? Ss 0:00 pppd file /tmp/ppp/options.wan0
102 ? Ss 0:00 infosvr br0
103 ? Ss 0:00 watchdog
106 ? Ss 0:00 \_ ntp
113 ? S 0:00 dropbear
184 ? Ss 0:01 \_ dropbear
185 pts/0 Ss 0:00 \_ -sh
210 pts/0 R+ 0:00 \_ ps afx
128 ? S 0:00 [usb-storage-0]
129 ? S 0:00 [scsi_eh_0]
132 ? S 0:00 [kjournald]
138 ? S 0:00 [kjournald]
149 ? S 0:00 /sbin/syslogd -m 0 -O /opt/var/log/messages -S -l 7
154 ? Ss 0:00 /opt/sbin/cron
169 ? S 0:00 /usr/sbin/busybox_httpd -c /opt/etc/httpd.conf -p 800
175 ? Ss 0:00 /opt/sbin/smbd -D
177 ? Ss 0:00 /opt/sbin/nmbd -D
208 ? S 0:00 upnp -D -L br0 -W ppp0
Warum will aber Xinetd nicht starten?
Gruß Robert
Transmission startet nicht sofort, sondern wird über cron bzw. den watchdog gestartet. Das dauert dann eben so lange, wie es im cron eingetragen ist.
Wenn Dir das nicht passt kannst Du den transmission watchdog auch über die post-boot starten.
Das mit xinetd ist merkwürdig.
gibt es im syslog eine Meldung dazu?
wengi