Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[risolto] Problema con amuled all'avvio
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
Galanti Davide
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2006
Posts: 148
Location: Milano (Italy)

PostPosted: Mon Mar 27, 2006 6:53 pm    Post subject: [risolto] Problema con amuled all'avvio Reply with quote

Il mio problema è il seguente ho messo il demone di amule, amuled all'avvio tramite

Code:
rc-update add amuled default


solo che quando si avvia mi esce questa cosa:

Code:
rm: cannot remove '/var/run/amuled.pid' : No such file or directory
* Starting aMule Daemon


Volevo sapere come mai mi esce l'avvertimento che non riesce a rimuovere amuled.pid e soprattutto come fare a togliere questa cosa eheh


Last edited by Galanti Davide on Thu May 25, 2006 4:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Mon Mar 27, 2006 7:41 pm    Post subject: Reply with quote

anche a me capita spesso. Ma ciò non pregiudica il buon funzionamento del mulo. Probabilmente è dovuto all'init script che non è molto accurato, ma non me ne sono mai curato più di tanto, funziona...

Byez
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
Galanti Davide
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2006
Posts: 148
Location: Milano (Italy)

PostPosted: Mon Mar 27, 2006 7:41 pm    Post subject: Reply with quote

Onip wrote:
anche a me capita spesso. Ma ciò non pregiudica il buon funzionamento del mulo. Probabilmente è dovuto all'init script che non è molto accurato, ma non me ne sono mai curato più di tanto, funziona...

Byez


Si ok per funzionare funziona ma .. se non ci fosse sarebbe meglio :D
Back to top
View user's profile Send private message
morellik
l33t
l33t


Joined: 03 Feb 2003
Posts: 629
Location: Firenze

PostPosted: Tue Mar 28, 2006 7:39 am    Post subject: Reply with quote

Confermo quanto detto da Onip. L'init script ha un 'bachetto'.

Code:

.
.
        rm /var/run/amuled.pid

        ebegin "Starting aMule Daemon"
.
.


In pratica tenta di rimuovere il pid prima di far partire il demone.
Chiaramente non essendo partito, il demone non ha ancora creato il pid.

morellik
Back to top
View user's profile Send private message
Galanti Davide
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2006
Posts: 148
Location: Milano (Italy)

PostPosted: Wed May 10, 2006 2:41 pm    Post subject: Reply with quote

morellik wrote:
Confermo quanto detto da Onip. L'init script ha un 'bachetto'.

Code:

.
.
        rm /var/run/amuled.pid

        ebegin "Starting aMule Daemon"
.
.


In pratica tenta di rimuovere il pid prima di far partire il demone.
Chiaramente non essendo partito, il demone non ha ancora creato il pid.

morellik


Se commento la liinea rm /var/run/amuled.pid tale errore non mi si verifica più.

Può comportare degli svantaggi la rimozione di tale linea? O ci sono per caso altri metodi?
Back to top
View user's profile Send private message
morellik
l33t
l33t


Joined: 03 Feb 2003
Posts: 629
Location: Firenze

PostPosted: Wed May 10, 2006 3:47 pm    Post subject: Reply with quote

Credo non ci siano controindicazioni, anche perché il pid lo dovrebbe eliminare eventualmente
la funzione di stop di /etc/init.d/amuled.

Prova eventualmente a fare un restart di amuled con la linea di rm commentata per
vedere se tutto funziona bene.
Back to top
View user's profile Send private message
Galanti Davide
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2006
Posts: 148
Location: Milano (Italy)

PostPosted: Wed May 10, 2006 4:22 pm    Post subject: Reply with quote

morellik wrote:
Credo non ci siano controindicazioni, anche perché il pid lo dovrebbe eliminare eventualmente
la funzione di stop di /etc/init.d/amuled.

Prova eventualmente a fare un restart di amuled con la linea di rm commentata per
vedere se tutto funziona bene.


Appena fatto e funziona tutto bene, ma non vi sono altri metodi?
Back to top
View user's profile Send private message
bender86
Guru
Guru


Joined: 18 Mar 2005
Posts: 484

PostPosted: Wed May 10, 2006 4:55 pm    Post subject: Reply with quote

Potresti sostituire
Code:
rm /var/run/amuled.pid
con
Code:
[ -f /var/run/amuled.pid ] && rm /var/run/amuled.pid
Occhio agli spazi. In questo modo, se il file esiste lo cancella, se no no.
Back to top
View user's profile Send private message
Galanti Davide
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2006
Posts: 148
Location: Milano (Italy)

PostPosted: Wed May 10, 2006 7:14 pm    Post subject: Reply with quote

bender86 wrote:
Potresti sostituire
Code:
rm /var/run/amuled.pid
con
Code:
[ -f /var/run/amuled.pid ] && rm /var/run/amuled.pid
Occhio agli spazi. In questo modo, se il file esiste lo cancella, se no no.


Ti ringrazio, così è meglio ;)
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