<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=4716&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / samba]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=4716</link>
		<description><![CDATA[Les sujets les plus récents dans samba.]]></description>
		<lastBuildDate>Thu, 12 May 2005 13:38:49 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  samba]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=30239#p30239</link>
			<description><![CDATA[<p>je peux me planter, mais normalement les scripts de démarrage des démons ne font pas partie des distributions &quot;standard&quot; des softs.<br />Voici une copie de mon script à moi (install de samba avec Synaptic et les packages Ubuntu). Faudra peut-être l&#039;adapter à tes besoins, notamment en fonction de là où tu as installé les démons :</p><div class="codebox"><pre class="vscroll"><code>#!/bin/sh
#
# Start/stops the Samba daemons (nmbd and smbd).
#
#

# Defaults
RUN_MODE=&quot;daemons&quot;

# Reads config file (will override defaults above)
[ -r /etc/default/samba ] &amp;&amp; . /etc/default/samba

NMBDPID=/var/run/samba/nmbd.pid
SMBDPID=/var/run/samba/smbd.pid

# clear conflicting settings from the environment
unset TMPDIR

# See if the daemons are there
test -x /usr/sbin/nmbd -a -x /usr/sbin/smbd || exit 0

. /lib/lsb/init-functions

case &quot;$1&quot; in
	start)
               log_begin_msg &quot;Starting Samba daemons..&quot;

               if ! start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- -D; then
                       log_end_msg 1
                       exit 1
               fi

		if [ &quot;$RUN_MODE&quot; != &quot;inetd&quot; ]; then
                       if ! start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- -D; then
                               log_end_msg 1
                               exit 1
                       fi
		fi

               log_end_msg 0
		;;
	stop)
               log_begin_msg &quot;Stopping Samba daemons...&quot;

		start-stop-daemon --stop --quiet --pidfile $NMBDPID
		# Wait a little and remove stale PID file
		sleep 1
		if [ -f $NMBDPID ] &amp;&amp; ! ps h `cat $NMBDPID` &gt; /dev/null
		then
			# Stale PID file (nmbd was succesfully stopped),
			# remove it (should be removed by nmbd itself IMHO.)
			rm -f $NMBDPID
		fi

		if [ &quot;$RUN_MODE&quot; != &quot;inetd&quot; ]; then
			start-stop-daemon --stop --quiet --pidfile $SMBDPID
			# Wait a little and remove stale PID file
			sleep 1
			if [ -f $SMBDPID ] &amp;&amp; ! ps h `cat $SMBDPID` &gt; /dev/null
			then
				# Stale PID file (nmbd was succesfully stopped),
				# remove it (should be removed by smbd itself IMHO.)
				rm -f $SMBDPID
			fi
		fi

               log_end_msg 0

		;;
	reload)
               log_begin_msg &quot;Reloading /etc/samba/smb.conf (smbd only)...&quot;

		start-stop-daemon --stop --signal HUP --pidfile $SMBDPID

               log_end_msg 0
		;;
	restart|force-reload)
		$0 stop
		sleep 1
		$0 start
		;;
	*)
               log_success_msg &quot;Usage: /etc/init.d/samba {start|stop|reload|restart|force-reload}&quot;
		exit 1
		;;
esac

exit 0</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (qstone)]]></author>
			<pubDate>Thu, 12 May 2005 13:38:49 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=30239#p30239</guid>
		</item>
		<item>
			<title><![CDATA[samba]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=30220#p30220</link>
			<description><![CDATA[<p>Bonjour,</p><br /><p>Je voudrais bien installer samba avec les options suivantes</p><p>--with-automount --with-smbmount --with-quotas --with-libsmbclient --with-acl-support --with-windbind<br />--with-ldap</p><p>Pour cela j&#039;ai telecharger le fichier .tar<br />puis decompresser,<br />cd samba/source<br />./configure --with-automount --with-smbmount --with-quotas --with-libsmbclient --with-acl-support --with-windbind<br />--with-ldap</p><p>make &amp;&amp; make install</p><p>Mais voila j&#039;aimerais bien avoir ds /etc/init.d/ mon demon samba pour le lancer au demarrage </p><p>comment faire?</p><p>Merci</p>]]></description>
			<author><![CDATA[dummy@example.com (Dess)]]></author>
			<pubDate>Thu, 12 May 2005 12:44:51 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=30220#p30220</guid>
		</item>
	</channel>
</rss>
