Bonjour,

Le Lundi 3 Avril 2006 19:41, [EMAIL PROTECTED] a écrit :


> J'ai donc fait le script suivant:
>
> #!/bin/bash
> /etc/init.d/apache2 restart
>
> et je demande à cron de le lancer.
> Mon problème est qu'alors Apache est arrêté mais jamais redémarré.

Et en faisant :
#!/bin/bash
/etc/init.d/apache2 stop
sleep 10
/etc/init.d/apache2 start

ou 

#!/bin/bash
/usr/sbin/apache2ctl restart

?

@+
-- 
Sim KAMIL (signature et citation aléatoires)
LOI (à la con)
Il est interdit de traverser la rue en marchant sur les mains.
(Hartford, Connecticut)


-- 
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Répondre à