Swisslinux.org

− Le carrefour GNU/Linux en Suisse −

 

Langue

 

Le Forum

Vous n'êtes pas identifié.

#1 12 Sep 2005 11:01:24

Deejayprod
Prêcheu(r|se) du libre
 
Lieu: Cottens-Beach - Fribourg
Date d'inscription: 08 Feb 2005
Messages: 120
Site web

Script démarrage proftpd

je capte pas trop beaucoup pourquoi il me dit ca l'animal quand je fais mon /etc/init.d/proftpd stop:


Stoppe le serveur FTP
No /usr/sbin/proftpd found running; none killed.

voila mon fichier /etc/init.d/proftpd:

Code:

#!/bin/sh

#script de démarrage de proftpd par David Jaquier

NAME=Proftpd
DAEMON=/usr/sbin/proftpd
PIDFILE=/var/run/$name.pid
CONF=/etc/proftpd.conf


case "$1" in
    start)
        echo "Démarre le serveur FTP"
        start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON
        ;;
    stop)
        echo "Stoppe le serveur FTP"
        start-stop-daemon --stop --pidfile $PIDFILE --oknodo --exec $DAEMON
        ;;
    reload)
        echo "Recharge le serveur FTP"
        start-stop-daemon --stop --pidfile $PIDFILE --signal USR1 --exec $DAEMON
        ;;
    restart)
        $0 stop
        sleep 1
        $0 start
        ;;
    status)
        statusproc /usr/sbin/proftpd
        ;;
    *)
        echo "Usage: $0 {start|stop|reload|restart|status}"
        exit 1
        ;;
esac

# fin du fichier

pour démarrer...aucun problème  :?:  :?:  :?:  :?:  :?:  :?:

je sais bien que c'est lundi de bénichon mais bon....quelqu'un peu m'aider?


``What's this script do?

'unzip; touch; finger; mount; gasp; yes; umount; sleep'

Hint for the answer: not everything is computer-oriented. Sometimes you're in a sleeping bag, camping out with your girlfriend.''
-- Frans van der Zande

Hors ligne

 

#2 12 Sep 2005 11:11:06

BOFH
Admin
Lieu: Ecublens, VD
Date d'inscription: 03 Feb 2005
Messages: 862
Site web

Re: Script démarrage proftpd

Bon, il y a qqch qui ne tourne pas très rond la dedans...

essaies

Code:

ps aux |grep proftpd

pour vérifier que proftpd est bien en train de s'executer; vérifie aussi le contenu et les permissions du pidfile:

Code:

cat /var/run/Proftpd.pid

Code:

ls -l /var/run/Proftpd.pid

++
BOFH

Hors ligne

 

#3 12 Sep 2005 11:25:22

Deejayprod
Prêcheu(r|se) du libre
 
Lieu: Cottens-Beach - Fribourg
Date d'inscription: 08 Feb 2005
Messages: 120
Site web

Re: Script démarrage proftpd

j'ai ca comme process:


nobody   28471  0.0  0.7  3616 1364 ?        S    11:07   0:00 proftpd (accepting connections)

dans mon proftpd.pid j'ai bien "28471"

et

pour le ls -l


-rw-r--r--    1 root     nogroup         6 Sep 12 11:07 /var/run/proftpd.pid

et sinon...je sais que y a quelque chose qui ne tourne pas très rond...pourtant mon serveur n'a pas eu droit au menu de benichon complet hier


``What's this script do?

'unzip; touch; finger; mount; gasp; yes; umount; sleep'

Hint for the answer: not everything is computer-oriented. Sometimes you're in a sleeping bag, camping out with your girlfriend.''
-- Frans van der Zande

Hors ligne

 

#4 12 Sep 2005 14:13:51

Deejayprod
Prêcheu(r|se) du libre
 
Lieu: Cottens-Beach - Fribourg
Date d'inscription: 08 Feb 2005
Messages: 120
Site web

Re: Script démarrage proftpd

bon...j'en avais raz le bol de me casser la tete alors j'ai remplacé ma ligne


start-stop-daemon --stop --pidfile $PIDFILE --oknodo --exec $DAEMON

par un grand cru de bracaillonnage:


kill `ps -ef | grep proftpd | grep -v grep | awk '{print $2}'` > /dev/null 2>&1

c'est pas beau, mais ca marche du tonnerre :cheesy:


``What's this script do?

'unzip; touch; finger; mount; gasp; yes; umount; sleep'

Hint for the answer: not everything is computer-oriented. Sometimes you're in a sleeping bag, camping out with your girlfriend.''
-- Frans van der Zande

Hors ligne

 

#5 01 Oct 2005 12:49:55

becket
Affranchi(e)
 
Date d'inscription: 27 Feb 2005
Messages: 5
Site web

Re: Script démarrage proftpd

Code:

killall -9 proftpd

Hors ligne

 

#6 01 Oct 2005 15:44:28

Flying Jack
Citoyen(ne)
 
Lieu: France
Date d'inscription: 30 Sep 2005
Messages: 15
Site web

Re: Script démarrage proftpd

j'avais le meme message sur mon ancien serveur, mais tout marchait bien :S


[URL=http://www.nipournicontre.com][img]http://www.nipournicontre.com/_img/ban_sig.jpg[/img][/URL]

Hors ligne

 

Pied de page des forums

Powered by FluxBB