[quote=“nawak”]salut Papy c Nawak
tu va bien si c bien toi !!!
pour ta question normalement ca se lance automatiquement au démarage dans /etc/init.d/*
COmment tu installe tes diiférents paquets ? ce sont des binaires ou des sources que tu dois compiler ???
Bon courage !!!
et bon stage si c bien le papy de MRIM[/quote]
Salut, n etant pas en stage (MRIM ??? ), sa dois etre une autre personne
Comme indiquer ds mon post precedent, par le binaire (apt-get install pure-ftpd) il me crer un script “enorme”.
Si je le fais en compilation j ai un script de 2 lignes.
Pour l installation par compilation
#! /usr/bin/sh
/usr/local/sbin/pure-ftpd -A -c 50 -B -C 8 -D -E -fftp -H -I15 -L 2000:8 -M -m 4 -p 30000:50000 -U 133:022 -u 100 -w -W -k 99 -Z
Pour l installation par apt-get
[code]#! /bin/sh
pure-ftpd starts and stops the pure-ftpd ftp daemon
PATH=/sbin:/bin:/usr/sbin:/usr/bin
NAME=pure-ftpd
DESC=“ftp server”
: ${SSDAEMONLOGOPTS:="–quiet"}
UPLOADDAEMON=/usr/sbin/pure-uploadscript
UDNAME=pure-uploadscript
UDDESC="ftp upload handler"
WRAPPER=/usr/sbin/pure-ftpd-wrapper
try to figure with suffix this script is called,
$0 might be a symlink pointing to this script
if [ -h $0 ]; then
ME=/bin/readlink $0
else
ME=$0
fi
SUFFIX=basename $ME | sed -ne 's/^pure-ftpd-\(.*\)/\1/p'
if [ “$SUFFIX” ] ; then
DAEMON=/usr/sbin/pure-ftpd-$SUFFIX
else
DAEMON=/usr/sbin/pure-ftpd
fi
test -x $DAEMON || exit 0
test -x $WRAPPER || exit 0
export STANDALONE_OR_INETD=inetd
test -r /etc/default/pure-ftpd-common && . /etc/default/pure-ftpd-common
set -e
start_uploadscript() {
if [ “$UPLOADSCRIPT” -a “$STANDALONE_OR_INETD” != inetd ] &&
egrep -i ‘^[ ](yes|1|on)[ ]’ /etc/pure-ftpd/conf/CallUploadScript > /dev/null 2>&1
then
UOPTS="“
test “$UPLOADUID” && UOPTS=”$UOPTS -u $UPLOADUID"
test “$UPLOADGID” && UOPTS="$UOPTS -g $UPLOADGID"
echo -n "$1 $UDDESC: "
start-stop-daemon --start $SSDAEMONLOGOPTS --oknodo
–exec $UPLOADDAEMON – -r “$UPLOADSCRIPT” -B $UOPTS
echo “$UDNAME.”
fi
}
case “$1” in
start)
test “$STANDALONE_OR_INETD” = standalone || exit 0
echo -n "Starting $DESC: "
start-stop-daemon --start $SSDAEMONLOGOPTS --pidfile /var/run/pure-ftpd/pure-ftpd.pid
–exec $WRAPPER – $SUFFIX
start_uploadscript Starting
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop $SSDAEMONLOGOPTS --oknodo
–pidfile /var/run/pure-ftpd/pure-ftpd.pid
start-stop-daemon --stop $SSDAEMONLOGOPTS --oknodo --exec $UPLOADDAEMON
echo “$NAME.”
;;
restart|force-reload)
test “$STANDALONE_OR_INETD” = standalone || exit 0
echo -n "Restarting $DESC: "
start-stop-daemon --stop $SSDAEMONLOGOPTS --oknodo
–pidfile /var/run/pure-ftpd/pure-ftpd.pid
start-stop-daemon --stop $SSDAEMONLOGOPTS --oknodo --exec $UPLOADDAEMON
sleep 1
start-stop-daemon --start $SSDAEMONLOGOPTS --pidfile
/var/run/pure-ftpd/pure-ftpd.pid --exec $WRAPPER – $SUFFIX
start_uploadscript Restarting
;;
*)
N=/etc/init.d/$NAME
echo “Usage: $N {start|stop|restart|force-reload}” >&2
exit 1
;;
esac
exit 0[/code]
Tu constates la difference ^^