Re: how to boot in les than 8 minutes

2014-10-20 Thread Andrei POPESCU
On Sb, 18 oct 14, 11:29:32, Pierre Frenkiel wrote:
 
   I still noticed a curious fact
   Impossible to find what package provides /etc/samba/smb.conf
   apt-file search smb.conf only gives /usr/share/samba/smb.conf,
   from samba-common.
   /usr/share/samba/smb.conf and /etc/samba/dmb.conf are strictly identical
   Nevertheless, if I remove /etc/samba/smb.conf, the reinstall of samba
   or samba-common fails

I'm guessing /usr/share/samba/smb.conf is copied to /etc/samba/smb.conf 
in some postinst script (probably of samba-common).

It's been a while since trying out samba, but I seem to recall editing 
smb.conf was a must, so marking it as dpkg-conffile would now work so 
well ;)

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt


signature.asc
Description: Digital signature


Re: how to boot in les than 8 minutes

2014-10-20 Thread Joe
On Mon, 20 Oct 2014 13:35:15 +0300
Andrei POPESCU andreimpope...@gmail.com wrote:

 On Sb, 18 oct 14, 11:29:32, Pierre Frenkiel wrote:
  
I still noticed a curious fact
Impossible to find what package provides /etc/samba/smb.conf
apt-file search smb.conf only gives /usr/share/samba/smb.conf,
from samba-common.
/usr/share/samba/smb.conf and /etc/samba/dmb.conf are strictly
  identical Nevertheless, if I remove /etc/samba/smb.conf, the
  reinstall of samba or samba-common fails
 
 I'm guessing /usr/share/samba/smb.conf is copied
 to /etc/samba/smb.conf in some postinst script (probably of
 samba-common).
 
 It's been a while since trying out samba, but I seem to recall
 editing smb.conf was a must, so marking it as dpkg-conffile would now
 work so well ;)
 

Bear in mind that the full samba system is only required for a server
i.e. a machine offering shares, only the client parts are needed to
access shares elsewhere, and they do not generally need central
configuration. Shares mounted by cifs through /etc/fstab will have
access configuration built in there. Linux smb access software mostly
doesn't worry about Windows workgroup names.

Yes, there were samba issues just after my switch to systemd on my old
installation. I'm curious as to why someone thought that five *minutes*
was an appropriate timeout for trying to close smb shares. As far as I
can see, on a local network, if it hasn't happened in about ten seconds
plus any actual cache writing time, it's never going to happen. I've
also seen a lot of failures to close cifs shares before removing
networking in sid over the years (who knew that you shouldn't shut down
networking until *after* the sessions are closed?), though the normal
timeout then is a mere two minutes.

-- 
Joe


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20141020124212.1491a...@jresid.jretrading.com



Re: how to boot in les than 8 minutes

2014-10-20 Thread Pierre Frenkiel

On Mon, 20 Oct 2014, Andrei POPESCU wrote:


I'm guessing /usr/share/samba/smb.conf is copied to /etc/samba/smb.conf
in some postinst script (probably of samba-common).


  Yes, but if it does that, why is it complaining that /etc/samba/smf.conf
  is missing?

best regards,
--
Pierre Frenkiel


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: 
https://lists.debian.org/alpine.deb.2.11.1410201415160.25...@pfr2.frenkiel-hure.net



Re: how to boot in les than 8 minutes

2014-10-20 Thread Andrei POPESCU
On Lu, 20 oct 14, 14:19:19, Pierre Frenkiel wrote:
 On Mon, 20 Oct 2014, Andrei POPESCU wrote:
 
 I'm guessing /usr/share/samba/smb.conf is copied to /etc/samba/smb.conf
 in some postinst script (probably of samba-common).
 
   Yes, but if it does that, why is it complaining that /etc/samba/smf.conf
   is missing?

At what stage? The postinst script of a package is only executed at 
installation time. What you did in the meantime...

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt


signature.asc
Description: Digital signature


Re: how to boot in les than 8 minutes

2014-10-20 Thread Pierre Frenkiel

On Mon, 20 Oct 2014, Andrei POPESCU wrote:


At what stage? The postinst script of a package is only executed at
installation time. What you did in the meantime...


  I did:  apt-get --reinstall install samba-common

  So, it seems that with --reinstall, the postinst script is not
  executed, which is not what I would expect.
  I saw:

   You can reinstall a package with sudo apt-get install --reinstall
   packagename. This completely removes the package (but not its
   dependencies), and then re-install the package.


best regards,
--
Pierre Frenkiel


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: 
https://lists.debian.org/alpine.deb.2.11.1410201605440.22...@pfr2.frenkiel-hure.net



Re: how to boot in les than 8 minutes

2014-10-20 Thread Andrei POPESCU
On Lu, 20 oct 14, 16:16:00, Pierre Frenkiel wrote:
 On Mon, 20 Oct 2014, Andrei POPESCU wrote:
 
 At what stage? The postinst script of a package is only executed at
 installation time. What you did in the meantime...
 
   I did:  apt-get --reinstall install samba-common
 
   So, it seems that with --reinstall, the postinst script is not
   executed, which is not what I would expect.

You might have better success with

dpkg-reconfigure samba-common

instead.

   I saw:
 
You can reinstall a package with sudo apt-get install --reinstall
packagename. This completely removes the package (but not its
dependencies), and then re-install the package.

That doesn't appear to be from the apt-get manual and seems wrong to me.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt


signature.asc
Description: Digital signature


Re: how to boot in les than 8 minutes

2014-10-20 Thread Pierre Frenkiel

On Mon, 20 Oct 2014, Andrei POPESCU wrote:


You might have better success with

   dpkg-reconfigure samba-common


 it's not the same. I was faced to the 5 minutes waiting time at shutdown,
 and wanted to check whether this came from a problem when installing
 samba-common/samba. Anyway, as I said, it's solved with the new version.


  I saw:

   You can reinstall a package with sudo apt-get install --reinstall
   packagename. This completely removes the package (but not its
   dependencies), and then re-install the package.


That doesn't appear to be from the apt-get manual and seems wrong to me.


  of course, the man says nothing! I tried to find elsewhere a more detailed
  description of what exactly does --reinstall, and found the above lines.

  In the absence of informations, it seems the only solution is to
  look at the source !!


best regards,
--
Pierre Frenkiel


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: 
https://lists.debian.org/alpine.deb.2.11.1410202010160.11...@pfr2.frenkiel-hure.net



Re: how to boot in les than 8 minutes

2014-10-18 Thread Pierre Frenkiel

dn Fri, 17 Oct 2014, Steve Litt wrote:


. . .
 My suspicion at this point would be either a
flaw in his smb.conf (which is easy to test by temporarily replacing it
with a minimal) or Samba itself.
. . .


  I was on the way to do that, but I first re-installed samba and
  samba-common packages, without modyfing smb.conf.
  I noticed that the version changed from 2:4.1.11+dfsg-1 to
  2:4.1.11+dfsg-2
  After that, the shutdown lasted 3 seconds!
  So, it seems that systemd is not guilty for the shutdown problem.

  I still noticed a curious fact
  Impossible to find what package provides /etc/samba/smb.conf
  apt-file search smb.conf only gives /usr/share/samba/smb.conf,
  from samba-common.
  /usr/share/samba/smb.conf and /etc/samba/dmb.conf are strictly identical
  Nevertheless, if I remove /etc/samba/smb.conf, the reinstall of samba
  or samba-common fails

best regards,
--
Pierre Frenkiel


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: 
https://lists.debian.org/alpine.deb.2.11.1410181110220.8...@pfr2.frenkiel-hure.net



Re: how to boot in les than 8 minutes

2014-10-17 Thread Buntunub
Pierre Frenkiel wrote
 hi,
 it seems that tha last version of systemd in jessie (215-5+b1)
 has a big number of bugs, among which the very long time to shutdown,
 mainly
 for samba (5 minutes). Trying to kill samba manually before the shutdown
 did not solve the problem.

If this is the future with Systemd, then all the more reason to ensure we
maintain more seasoned init systems, which we know work without issues like
this. Has Debian utterly forgotten its roots of stability and conservative
approach to adopting experimental software in its stable releases?



--
View this message in context: 
http://debian.2.n7.nabble.com/how-to-boot-in-les-than-8-minutes-tp3393095p3394716.html
Sent from the Debian User mailing list archive at Nabble.com.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/1413594901817-3394716.p...@n7.nabble.com



Re: how to boot in les than 8 minutes

2014-10-17 Thread Steve Litt
On Fri, 17 Oct 2014 18:15:01 -0700 (MST)
Buntunub mckis...@gmail.com wrote:

 Pierre Frenkiel wrote
  hi,
  it seems that tha last version of systemd in jessie (215-5+b1)
  has a big number of bugs, among which the very long time to
  shutdown, mainly
  for samba (5 minutes). Trying to kill samba manually before the
  shutdown did not solve the problem.
 
 If this is the future with Systemd, then all the more reason to
 ensure we maintain more seasoned init systems, which we know work
 without issues like this. Has Debian utterly forgotten its roots of
 stability and conservative approach to adopting experimental software
 in its stable releases?

Hey, I hate systemd as much as the next guy, but the diagnosis implied
by the OP's quoted text is nowhere near ready to declare systemd as the
root cause. Contrarily, the fact that his shutting down manually
reproduced his symptom makes it unlikely that any PID1, including
systemd, is responsible. My suspicion at this point would be either a
flaw in his smb.conf (which is easy to test by temporarily replacing it
with a minimal) or Samba itself.

It turned out he was starting two of them, one by systemd and one
elsewhere. Umm, err, blush, I recently had the exact same problem with
daemontools!

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20141017213414.05b7b...@mydesq2.domain.cxm



Re: how to boot in les than 8 minutes

2014-10-17 Thread Scott Ferguson
On 18/10/14 12:34, Steve Litt wrote:
 On Fri, 17 Oct 2014 18:15:01 -0700 (MST)
 Buntunub mckis...@gmail.com wrote:
 
 Pierre Frenkiel wrote
 hi,
--88---
 My suspicion at this point would be either a
 flaw in his smb.conf (which is easy to test by temporarily replacing it
 with a minimal) or Samba itself.

testparm -v might also be instructive.


--88---


Kind regards


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/5441bf9b.5020...@gmail.com



how to boot in les than 8 minutes

2014-10-16 Thread Pierre Frenkiel

hi,
it seems that tha last version of systemd in jessie (215-5+b1)
has a big number of bugs, among which the very long time to shutdown, mainly
for samba (5 minutes). Trying to kill samba manually before the shutdown
did not solve the problem.
I then tried to downgrade to version 208-8, which is available
according the output of apt-cache madison systemd

systemd |   215-5+b1 | http://ftp.fr.debian.org/debian/ jessie/main i386 
Packages
systemd |  208-8 | http://ftp.fr.debian.org/debian/ jessie/main Sources
systemd |  215-5 | http://ftp.fr.debian.org/debian/ jessie/main Sources

but I get:

apt-get install systemd=208-8 
Reading package lists... Done
Building dependency tree 
Reading state information... Done

E: Version '208-8' for 'systemd' was not found

What is wrong?

best regards,
--
Pierre Frenkiel


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: 
https://lists.debian.org/alpine.deb.2.11.1410161835470.18...@pfr2.frenkiel-hure.net



Re: how to boot in les than 8 minutes

2014-10-16 Thread Martin Steigerwald
Am Donnerstag, 16. Oktober 2014, 18:52:41 schrieb Pierre Frenkiel:
 hi,
 it seems that tha last version of systemd in jessie (215-5+b1)
 has a big number of bugs, among which the very long time to shutdown, mainly
 for samba (5 minutes). Trying to kill samba manually before the shutdown
 did not solve the problem.
 I then tried to downgrade to version 208-8, which is available
 according the output of apt-cache madison systemd
 
 systemd |   215-5+b1 | http://ftp.fr.debian.org/debian/ jessie/main i386
 Packages
 systemd |  208-8 | http://ftp.fr.debian.org/debian/
 jessie/main Sources
  ^^^

 systemd |  215-5 | http://ftp.fr.debian.org/debian/
 jessie/main Sources
  ^^^

Just source packages.

 
 but I get:
 
 apt-get install systemd=208-8
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 E: Version '208-8' for 'systemd' was not found
 
 What is wrong?

See above. You would need to get the package with apt-get source and build it 
yourself.

Since such a setup would be unsupported I suggest reporting the bugs. It will 
also help Debian Jessie have less bugs when its released.

Ciao,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/152.IfX0URMpqL@merkaba



Re: how to boot in les than 8 minutes

2014-10-16 Thread Michael Biebl
Am 16.10.2014 um 18:52 schrieb Pierre Frenkiel:
 hi,
 it seems that tha last version of systemd in jessie (215-5+b1)
 has a big number of bugs, among which the very long time to shutdown,
 mainly
 for samba (5 minutes).

The samba package does not properly clean up it's config files on
upgrades. See the RC bug that's filed against samba.

Run update-rc.d samba remove to fix that.

Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature