[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [linux] samba + inetd.conf + mandrake 8.0
Depuis Mandrake 8.0 , on utilise Xinetd.
Les fichiers de config d' xinetd se trouvent dans /etc/xinetd.d
Un fichier par service !
Mais attention, samba ne se lance pas d'xinetd, mais via un script devant se
trouver dans
/etc/rc.d/init.d : smb voir la fin du message
Mais swat, l'outil d'administration lui se lance bien d'xinetd !
Mais il n'y a pas de rpm pour la version 2.2.2 ? Sur rpmfind.net on trouve
la version
samba-2.2.2 des "cookers"
Dominique
Voici au cas ou, le contenu de mon /etc/rc.d/init.d/smb
[dga@dalton dga]$ cat /etc/rc.d/init.d/smb
#!/bin/sh
#
# chkconfig: - 91 35
# description: Starts and stops the Samba smbd and nmbd daemons \
# used to provide SMB network services.
# Source function library.
if [ -f /etc/init.d/functions ] ; then
. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
. /etc/rc.d/init.d/functions
else
exit 0
fi
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
# Check that smb.conf exists.
[ -f /etc/samba/smb.conf ] || exit 0
RETVAL=0
start() {
# If CUPS is used as printing system, reload smb after a 1 minute
delay
# to allow the printers to appear properly as samba shares.
if killall -0 cupsd 2>/dev/null; then
( sleep 60 && killproc smbd -HUP ) &
fi
export TMPDIR="/var/tmp"
echo -n "Starting SMB services: "
daemon smbd -D
RETVAL=$?
echo
echo -n "Starting NMB services: "
daemon nmbd -D
RETVAL2=$?
echo
[ $RETVAL -eq 0 -a $RETVAL2 -eq 0 ] && touch /var/lock/subsys/smb ||
\
RETVAL=1
return $RETVAL
}
stop() {
echo -n "Shutting down SMB services: "
killproc smbd
RETVAL=$?
echo
echo -n "Shutting down NMB services: "
killproc nmbd
RETVAL2=$?
[ $RETVAL -eq 0 -a $RETVAL2 -eq 0 ] && rm -f /var/lock/subsys/smb
echo ""
return $RETVAL
}
restart() {
stop
start
}
reload() {
export TMPDIR="/var/tmp"
echo -n "Reloading smb.conf file: "
killproc smbd -HUP
RETVAL=$?
echo
return $RETVAL
}
mdkstatus() {
status smbd
status nmbd
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
reload)
reload
;;
status)
mdkstatus
;;
condrestart)
[ -f /var/lock/subsys/smb ] && restart || :
;;
*)
echo "Usage: $0 {start|stop|restart|status|condrestart}"
exit 1
esac
exit $?
----- Original Message -----
From: "Benoit Joseph" <benoit.joseph@teledisnet.be>
To: <linux@lists.unixtech.be>
Sent: Thursday, December 13, 2001 3:06 PM
Subject: Re: [linux] samba + inetd.conf + mandrake 8.0
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Regarde à xinetd?
Peut-être que c'est ça...
A+
Benoit
Le Jeudi 13 Décembre 2001 14:16, vous avez écrit :
> salut!
>
>
> après avoir correctement compilé samba 2.2.2 (sans message
> d'erreur)sous mandrake 8.0 me voici acculé dans une impasse:
>
> en effet, il me faut modifier le fichier inetd.conf (sous
> /etc/inetd.conf)
>
> OR, je ne le trouve pas! Quel howto, site web, man pages consulter?
> Ce fichier est-il dénommé d'une autre manière dans mandrake 8.0?
>
> merci pour votre aide
>
> Pitch
>
>
>
>
> ++++
> ++++++++
> ++PITCHOUN++
> ++++++++
> ++++
>
> _________________________________________________________________
> Téléchargez MSN Explorer gratuitement à l'adresse
> http://explorer.msn.fr/intl.asp.
>
>
> [ Soyez précis dans vos sujets svp afin de déterminer directement ]
> [ le type de demande... ]
> [ Pour vous (dés)inscrire, aller sur http://unixtech.be/ml.php ]
> [ Archives de la mailing list: http://archives.unixtech.be/linux/ ]
> [ http://unixtech.be Contact: listmaster@unixtech.be ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8GLXyLPnuiaZn1q4RAnGEAKDVtKcxUHpd1DnLPQTkM2cRahvQPACguCLO
wjmrnU7i3ZOyC/ARKzRCAsc=
=s/Yo
-----END PGP SIGNATURE-----
[ Soyez précis dans vos sujets svp afin de déterminer directement ]
[ le type de demande... ]
[ Pour vous (dés)inscrire, aller sur http://unixtech.be/ml.php ]
[ Archives de la mailing list: http://archives.unixtech.be/linux/ ]
[ http://unixtech.be Contact: listmaster@unixtech.be ]
[ Soyez précis dans vos sujets svp afin de déterminer directement ]
[ le type de demande... ]
[ Pour vous (dés)inscrire, aller sur http://unixtech.be/ml.php ]
[ Archives de la mailing list: http://archives.unixtech.be/linux/ ]
[ http://unixtech.be Contact: listmaster@unixtech.be ]