Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eseguire apache2 offline (no netmount) [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) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
ubik15
Tux's lil' helper
Tux's lil' helper


Joined: 08 Oct 2005
Posts: 90

PostPosted: Sat Oct 08, 2005 11:08 am    Post subject: eseguire apache2 offline (no netmount) [RISOLTO] Reply with quote

Per prima cosa ciao a tutti, questo è il mio primo post!
Uso gentoo da un paio di anni e finora il forum mi ha aiutato moltissimo per risolvere i vari inconvenienti incontrati lungo il cammino.
Per questo inghippo però non ho trovato soluzione:

ho installato con successo apache2 sul mio portatile, ma ora ho bisogno di poterlo eseguire anche offline per testing e altro.
Uso dhcpcd, ma quando sono sconnesso dalla rete, ovviamente netmount non viene caricato e questo impedisce a apache di partire.
C'è un modo per far girare il web server in modalità locale?

Grazie1000!!!


Last edited by ubik15 on Sat Oct 08, 2005 12:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Sat Oct 08, 2005 11:17 am    Post subject: Reply with quote

Se togli netmount dal runlevel di default non funziona?

Code:

darkstar ~ # rc-update show | grep netmount
            netmount |      default
darkstar ~ # rc-update del netmount       
 * netmount removed from the following runlevels: default
darkstar ~ # rc-update show | grep netmount
            netmount | 

_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sat Oct 08, 2005 11:19 am    Post subject: Re: eseguire apache2 offline (no netmount) Reply with quote

da' un'occhiata allo script di avvio, /etc/init.d/apache2.conf: troverai una sezione di "oggetti" da cui il servizio dipende.
modificalo togliendo (o aggiungendo) quello di cui hai bisogno.

non farti problemi a modificare QUELLA SEZIONE dello script di avvio, perché è assolutamente non standard e personalizzata per ogni sistema

Code:
depend() {
        need net
        use mysql dns logger netmount postgresql
        after sshd
}


@lavish:
non credo che la tua soluzione funzioni perché per quanto ne so io, nel suo caso l'avvio di apache viene bloccato dallo stesso script di avvio, che non trova i requisiti soddisfatti. penso...
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Sat Oct 08, 2005 11:23 am    Post subject: Re: eseguire apache2 offline (no netmount) Reply with quote

k.gothmog wrote:
non credo che la tua soluzione funzioni perché per quanto ne so io, nel suo caso l'avvio di apache viene bloccato dallo stesso script di avvio, che non trova i requisiti soddisfatti. penso...

Hai ragione, non avevo guardato lo script di avvio di apache :)

Ciao!
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
ubik15
Tux's lil' helper
Tux's lil' helper


Joined: 08 Oct 2005
Posts: 90

PostPosted: Sat Oct 08, 2005 11:48 am    Post subject: Reply with quote

Ok, grazie ragazzi!

Ho modificato lo script /etc/init.d/apache2 commentando le parti che non mi riguardano:

Code:
depend() {
   #need net
   use dns logger postgresql #netmount mysql
   after sshd
}


e ora apache parte anche senza connessione di rete (in particolare perché ho rimosso "need net").

Grazie!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano 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