Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I upgraded by Debian 8 system to a Debian 9 a few months back and everything has been just fine until a couple of weeks. The past 5-6 shutdowns have been taking a long time like 5 minutes. I looked at the /var/log/messages and the only message that looks really odd is:
This was around the last time I tried to turn it off. Any ideas if this is the problem and how to solve this? I wonder why this showed up all of a sudden.
Thanks for the response. Almost all the messages in /var/log/messages are actually with respect to startup rather than shutdown. These were the last messages before my next startup the next day which I is why I zoomed in on them. But it is just my guess that they are shutdown messages while they might not be. Are shutdown logs saved anywhere? Or can I save them anywhere to see what is failing to close?
Location: Fleury-les-Aubrais, 120 km south of Paris
Distribution: Devuan, Debian, Mandrake, Freeduc (the one I used to work on), Slackware, MacOS X
Posts: 251
Rep:
You should activate displaying of messages of shutdown(sadly it seems that Debian takes the wrong path of hiding things like other mainstream distributions) to see wich step takes time.
I have these kind of problems when a samba share is mounted. To solve it I put a corresponding umount command in a script called at shutdown. There must be other solutions using systemd.
Will have to find out how to turn on the shutdown messages. As for a Samba server, I don't think I have one. I have an Apache server running as I use my local machine to try out Wordpress themes. Do you think that might be a problem? Anyway, will get back to you soon.
This is where the system stood still for a long time. So I am guessing it is either trying to connect to the server and could not or else something else happened. So now I guess I need to figure out which conf file has this setting and turn it off.
Apparently, I need to shut down mysql first. Also, I noticed another problem which the last poster on the thread pointed out. My system clock at startup is one hour ahead. This I think messes up the mysql time. Suggested to run dpkg-reconfigure tzdata.
Will shutdown mysql tonight first and check. Then try out the time reconfiguration. Hopefully, getting closer ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.