[SOLVED] Current hangs in shutdown on fuser command
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
OK. I did some reading and it seems that ps -o can truncate the command if other things are specified after it. I changed your code to
ps -hq $i -o user,command
I removed the hard coded /mnt/slackware from the fuser command, letting it use $dir again
At the hang, the display of uncompleted background tasks showed this
root /usr/bin/fuser -k -M -m /mnt/slackware
So the command is correct but not completing.
That makes a lot of sense. Good catch!
I think the next step is to see if this issue exists with other versions of procps-ng. You could try grabbing the source from 14.2 and build that to see if the problem still occurs.
Code:
wget -r -nH --no-parent --reject="index.htm*" --cut-dirs=4 https://mirror.slackbuilds.org/slackware/slackware64-14.2/source/a/procps-ng/
cd procps-ng
sh procps-ng.SlackBuild
upgradepkg /tmp/procps-ng-3.3.11-*.txz
I am unable to get the 14.2 procps-ng to compile on current. However, 14.2 installed on another machine does not have the shutdown problem and it backgrounds the fuser kill command.
Maybe try the version in 14.2's patches/ directory. It's only 2 versions behind -current's version and may compile. Just change the cut-dirs to 5 instead of 4.
You say you are not using an SMP machine. But have you tried the SMP kernel? Unless it won't work for some reason it's the preferred kernel to use.
I have tried both the huge and generic kernels as provided with no mods. Currently on 5.12.15. I always understood that the huge kernel has SMP support built in now or have I missed another kernel somewhere?
So login. Switch to run level 0. But before list all active processes and mounts. If shutting down system in run level 1 works - then I think problem is somewhere else. Besides what do you do to shutdown system? From inside GUI, session manager, switching run level or directly by shutdown command?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.