Re: how to shutdown in less than 8 minutes
On Fri, 17 Oct 2014, Michael Biebl wrote: 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. hi Michael, I saw the thread concerning the bug report against samba, but only saw a proposed fix about the LSB headers(which didn't work), and not this one. Actually, you need both: update-rc.d samba and update-rc.d samba-ad-dc remove Then, the shutdown lasts a few seconds Thanks a lot for this valuable information. Question: the daemons nmbd and smbd are still launched by systemd at boot. although all the links in /etc/rcxx have been removed. How is it done? 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.1410170933530.8...@pfr2.frenkiel-hure.net
Re: how to shutdown in less than 8 minutes
Hi Pierre, you can answer your question by yourself by having a look into directory /lib/systemd/system and read systemctl man page. Small hint could be to run 'systemctl -a -t service' command. Some more information about systemd in Debain can be read on Wiki https://wiki.debian.org/systemd. Hope this helps. -- Peter On Fri, Oct 17, 2014 at 9:56 AM, Pierre Frenkiel pierre.frenk...@gmail.com wrote: On Fri, 17 Oct 2014, Michael Biebl wrote: 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. hi Michael, I saw the thread concerning the bug report against samba, but only saw a proposed fix about the LSB headers(which didn't work), and not this one. Actually, you need both: update-rc.d samba and update-rc.d samba-ad-dc remove Then, the shutdown lasts a few seconds Thanks a lot for this valuable information. Question: the daemons nmbd and smbd are still launched by systemd at boot. although all the links in /etc/rcxx have been removed. How is it done? 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.1410170933530. 8...@pfr2.frenkiel-hure.net
Re: how to shutdown in less than 8 minutes
On Fri, 17 Oct 2014, Peter Viskup wrote: Hi Pierre, you can answer your question by yourself by having a look into directory /lib/systemd/system and read systemctl man page. Small hint could be to run 'systemctl -a -t service' command. Some more information about systemd in Debain can be read on Wiki https://wiki.debian.org/systemd. Hope this helps. hi Peter, It's a good practice to tell people how they can help themselves, and it should be encouraged, but in some cases it's not enough, like in the present case. I already looked at https://wiki.archlinux.org/index.php/autostarting#Systemd which says: systemd is the default init framework, replacing initscripts. The services which are started by systemd can be found in the subfolders of /etc/systemd/system/. I found nothing about samba in any of these subfolders https://wiki.debian.org/systemd. didn't tell me either where I can find where the launch of the nmbs ans smbd daemons is triggered. running: systemctl -a -t service | grep samba gives: samba.serviceloadedinactive deadLSB: ensure Samba daemons are started (nmbd and smbd) This still not answers to my question. Looking in /usr/lib/systemd/user/ /etc/systemd/user/ gave nothing. I must add that before getting the fix with update-rc.d xx remove, I tried to make a bug report against systemd, and then discovered that there were already 261 reported bugs! That discouraged me to continue. 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.1410171407030.32...@pfr2.frenkiel-hure.net
Re: how to shutdown in less than 8 minutes
On Vi, 17 oct 14, 14:48:19, Pierre Frenkiel wrote: running: systemctl -a -t service | grep samba gives: samba.serviceloadedinactive deadLSB: ensure Samba daemons are started (nmbd and smbd) This still not answers to my question. Why are you grepping for 'samba' when the started daemons are 'smbd' and 'nmbd'? According to 'apt-file' the package 'samba' contains initscripts with those names. Other than that you could also look at the logs, something like journalctl -ab | grep nmbd could provide more information. Hope this helps, 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 shutdown in less than 8 minutes
On Fri, 17 Oct 2014 09:56:28 +0200 (CEST) Pierre Frenkiel pierre.frenk...@gmail.com wrote: On Fri, 17 Oct 2014, Michael Biebl wrote: 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. hi Michael, I saw the thread concerning the bug report against samba, but only saw a proposed fix about the LSB headers(which didn't work), and not this one. Actually, you need both: update-rc.d samba and update-rc.d samba-ad-dc remove Then, the shutdown lasts a few seconds Thanks a lot for this valuable information. Question: the daemons nmbd and smbd are still launched by systemd at boot. although all the links in /etc/rcxx have been removed. How is it done? This behavior is apparently consistent with a known Samba defect, but are you all sure that the delay *does* happen during the shutdown of Samba? If it turns out not to be Samba, you've just needlessly chased your tail for hours or days. Personally, I'd find out where all the time is going before troubleshooting Samba or any other package. 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/20141017122338.5fef5...@mydesq2.domain.cxm
Re: how to shutdown in less than 8 minutes
On Fri, 17 Oct 2014, Andrei POPESCU wrote: On Vi, 17 oct 14, 14:48:19, Pierre Frenkiel wrote: running: systemctl -a -t service | grep samba gives: samba.serviceloadedinactive deadLSB: ensure Samba daemons are started (nmbd and smbd) This still not answers to my question. Why are you grepping for 'samba' when the started daemons are 'smbd' and 'nmbd'? According to 'apt-file' the package 'samba' contains initscripts with those names. Of course, I also ran systemctl -a -t service | grep mbd, which gives nmbd.serviceloadedactive running LSB: start Samba NetBIOS nameserver (nmbd) samba.service loadedinactive deadLSB: ensure Samba daemons are started (nmbd and smbd) smbd.serviceloadedactive running LSB: start Samba SMB/CIFS daemon (smbd) but that still does not provide the needed informmation, i.e. how come nmbd and smbd are launched, although the links in all /etc/rcxx to /etc/init.d/samba have been removed ? Other than that you could also look at the logs, something like journalctl -ab | grep nmbd journalctl -ab | grep mbd Oct 17 09:09:59 pfr2 systemd[1]: Starting LSB: start Samba NetBIOS nameserver (nmbd)... Oct 17 09:10:19 pfr2 nmbd[4597]: Starting NetBIOS name server: nmbd. Oct 17 09:10:19 pfr2 systemd[1]: Started LSB: start Samba NetBIOS nameserver (nmbd). Oct 17 09:10:29 pfr2 systemd[1]: Starting LSB: start Samba SMB/CIFS daemon (smbd)... Oct 17 09:10:29 pfr2 smbd[5887]: Starting SMB/CIFS daemon: smbd. Oct 17 09:10:29 pfr2 systemd[1]: Started LSB: start Samba SMB/CIFS daemon (smbd). I don't see how this can help to answer the previous question. 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.1410172214040.16...@pfr2.frenkiel-hure.net
Re: how to shutdown in less than 8 minutes
On Fri, 17 Oct 2014, Steve Litt wrote: are you all sure that the delay *does* happen during the shutdown of Samba? If it turns out not to be Samba, you've just needlessly chased your tail for hours or days. I'm quite sure, because: 1/ there are a lot of bug reports against samba about this problem 2/ before removing the samba links, I had this message at shutdown with a countdown of 5 minutes A stop job is running for LSB: ensure samba daemons are started (nmbd and smbd) ( 3 min 2 s / 5 min ) 3/ after removal of the samba links, the shutdown takes a few seconds ... 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.1410172228060.16...@pfr2.frenkiel-hure.net
Re: how to shutdown in less than 8 minutes
On Vi, 17 oct 14, 22:26:02, Pierre Frenkiel wrote: On Fri, 17 Oct 2014, Andrei POPESCU wrote: On Vi, 17 oct 14, 14:48:19, Pierre Frenkiel wrote: running: systemctl -a -t service | grep samba gives: samba.serviceloadedinactive deadLSB: ensure Samba daemons are started (nmbd and smbd) This still not answers to my question. Why are you grepping for 'samba' when the started daemons are 'smbd' and 'nmbd'? According to 'apt-file' the package 'samba' contains initscripts with those names. how come nmbd and smbd are launched, although the links in all /etc/rcxx to /etc/init.d/samba have been removed ? I meant /etc/init.d/nmbd /etc/init.d/smbd 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 shutdown in less than 8 minutes
On Fri, 17 Oct 2014, Pierre Frenkiel wrote: how come nmbd and smbd are launched, although the links in all /etc/rcxx to /etc/init.d/samba have been removed ? I found the answer: it was obvious but rather unexpected: the samba packages installs in /etc/init.d the samba AND nmbd and smbd scripts !! Difficult to believe. Of course, the command update-rc.d samba remove removed the links for samba, but not for nmbd and smbd. 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.1410172250010.11...@pfr2.frenkiel-hure.net
Re: how to shutdown in less than 8 minutes
On Fri, 17 Oct 2014 22:44:41 +0200 (CEST) Pierre Frenkiel pierre.frenk...@gmail.com wrote: On Fri, 17 Oct 2014, Steve Litt wrote: are you all sure that the delay *does* happen during the shutdown of Samba? If it turns out not to be Samba, you've just needlessly chased your tail for hours or days. I'm quite sure, because: 1/ there are a lot of bug reports against samba about this problem 2/ before removing the samba links, I had this message at shutdown with a countdown of 5 minutes A stop job is running for LSB: ensure samba daemons are started (nmbd and smbd) ( 3 min 2 s / 5 min ) 3/ after removal of the samba links, the shutdown takes a few seconds ... Bang, that's it, you proved it. Obviously, your next step is to do the corrective maintenance suggested for Samba. If that doesn't eliminate the symptom... My next step would be, just as a diagnostic test, run smb and nmb from a terminal, then shut them down again, and see if the problem occurs. If so, ***TEMPORARILY*** replace your smb.conf with the simplest possible smb.conf (maybe just printers) and see if the problem still occurs. If so, ask for help on the Samba list. But if the simplest possible smb.conf shuts down in a few seconds, then start adding stuff back until you find the Samba service that takes all the time, and examine that. 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/20141017183513.0a134...@mydesq2.domain.cxm
Re: how to shutdown in less than 8 minutes
On Fri, 17 Oct 2014 23:51:34 +0300 Andrei POPESCU andreimpope...@gmail.com wrote: I meant /etc/init.d/nmbd /etc/init.d/smbd Kind regards, Andrei LOL, same here (in my advice on troubleshooting to Pierre)_. 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/20141017183625.7d03a...@mydesq2.domain.cxm