Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/sbin/rc: line 83: to: command not found [RISOLTO]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
mrfree
Veteran
Veteran


Joined: 15 Mar 2003
Posts: 1303
Location: Europe.Italy.Sulmona

PostPosted: Sat Aug 28, 2004 1:56 pm    Post subject: /sbin/rc: line 83: to: command not found [RISOLTO] Reply with quote

Code:
/sbin/rc: line 83: to: command not found

Questo è il messaggio di errore che viene visualizzato quando avvio vsftpd
Code:
/etc/init.d/vsftpd start
oppure quando viene avviato al boot

Il server FTP funziona benissimo ma questo messaggio di errore mi infastidisce e non poco :wink:

EDIT: Questo è lo script di avvio incluso nell'ebuild di vsftpd
Code:
#!/sbin/runscript
# Copyright 2003-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2
# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/files/vsftpd.init.d,v 1.3 200$

depend() {
        need net
        use dns logger
}

checkconfig() {
        if [ ! -e ${VSFTPD_CONF} ] ; then
                eerror "Please setup ${VSFTPD_CONF} before starting vsftpd"
                eerror "There are sample configurations in /usr/share/doc/vsftp$
                return 1
        else
                source ${VSFTPD_CONF}
                if [ "${background}" != "YES" ] || [ "${listen}" != "YES" ] ; t$
                        eerror "${VSFTPD_CONF} must contain background=YES and $
                        eerror "in order to start vsftpd from /etc/init.d/vsftp$
                        return 2
                fi
        fi
}

start() {
        checkconfig || return 1
        ebegin "Starting vsftpd"
        start-stop-daemon --start --quiet \
                --exec /usr/sbin/vsftpd ${VSFTPD_CONF}
        eend $?
}

stop() {
        ebegin "Stopping vsftpd"
        start-stop-daemon --stop --quiet --exec /usr/sbin/vsftpd
        eend $?
}

_________________
Please EU, pimp my country!

ICE: /etc/init.d/iptables panic


Last edited by mrfree on Sat Aug 28, 2004 5:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
motaboy
Retired Dev
Retired Dev


Joined: 15 Dec 2003
Posts: 1483

PostPosted: Sat Aug 28, 2004 2:27 pm    Post subject: Reply with quote

Secondo ma hai /sbin/rc rovinato. Prova a guardare cosa c'é scritto alla linea 83. (per curiositá personale postalo).

Dopo potresti provare a riemergere baselayout.
_________________
...
Back to top
View user's profile Send private message
mrfree
Veteran
Veteran


Joined: 15 Mar 2003
Posts: 1303
Location: Europe.Italy.Sulmona

PostPosted: Sat Aug 28, 2004 5:40 pm    Post subject: Reply with quote

è li il bello, questa è la riga 83 di /sbin/rc
Code:
 # Not provided by sysfs but needed
:)
Mentre in /sbin/runscript.sh c'è:
Code:
restart() {
        svc_restart || return $?
}


Infatti ho notato che nel boot segnala /sbin/rc mentre se avvio a mano il servizio mi segnala l'errore in /sbin/runscript.sh

La cosa che mi sembra strana è che questo problema si manifesta solo con lo script di vsftpd


Comunque riemergendo basalayout la cosa non cambia...
_________________
Please EU, pimp my country!

ICE: /etc/init.d/iptables panic
Back to top
View user's profile Send private message
mrfree
Veteran
Veteran


Joined: 15 Mar 2003
Posts: 1303
Location: Europe.Italy.Sulmona

PostPosted: Sat Aug 28, 2004 5:45 pm    Post subject: Reply with quote

<imprecazioni_varie>&%&%?!?!</imprecazioni_varie>

E' un bug nell'init script come immaginavo :)

https://bugs.gentoo.org/show_bug.cgi?id=51908

Applicando la patch proposta tutto funziona a dovere...
_________________
Please EU, pimp my country!

ICE: /etc/init.d/iptables panic
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum