The officially official Devuan Forum!

You are not logged in.

#1 2017-04-29 20:11:38

greenjeans
Member
Registered: 2017-04-07
Posts: 505  
Website

[Solved] Minor issue with shutdown, some process failing to stop

Hey folks, having a minor issue with one of my projects, if anybody has a sec to take a quick peek at the picture i took and maybe point me in the right direction it would be greatly appreciated!

Shutdown usually is lightning fast, but started getting this hitch of a few seconds in the process and an error message, it stops for a few seconds right after "asking all remaining processes to terminate....done", then spits out that tree and the fail message and then goes ahead and shuts down :

EDIT: Solved this but it's gonna take some explaining, I only type with two fingers so it's very slow, will get to this soon.;)

20z450h.jpg

Last edited by greenjeans (2017-05-06 19:28:19)


https://sourceforge.net/projects/vuu-do/
Vuu-do GNU/Linux, minimal Devuan-based openbox systems to build on, maximal versions if you prefer your linux fully-loaded.

Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#2 2017-05-04 20:28:16

greenjeans
Member
Registered: 2017-04-07
Posts: 505  
Website

Re: [Solved] Minor issue with shutdown, some process failing to stop

Fixed!

Last edited by greenjeans (2017-05-06 19:29:17)


https://sourceforge.net/projects/vuu-do/
Vuu-do GNU/Linux, minimal Devuan-based openbox systems to build on, maximal versions if you prefer your linux fully-loaded.

Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#3 2017-05-05 14:34:37

FOSSuser
Member
From: Surrey/Hants border UK
Registered: 2016-12-11
Posts: 167  

Re: [Solved] Minor issue with shutdown, some process failing to stop

A wild guess....maybe something to do with this?

  If pstree is called as pstree.x11 then it will prompt the user  at  the
       end of the line to press return and will not return until that has hap‐
       pened.  This is useful for when pstree is run in a xterminal.

Offline

#4 2017-09-12 13:05:29

nixer
Member
From: North Carolina, USA
Registered: 2016-11-30
Posts: 185  

Re: [Solved] Minor issue with shutdown, some process failing to stop

Sorry to resurrect this old thread but, care to share how you got it sorted out?  I know there is a problem with rsyslog in ascii, but I have one install of jessie (devuan) that does have this problem.  Is it easier just to use a different logging program like syslog-ng or busybox-syslogd?

Offline

#5 2017-09-13 21:02:03

greenjeans
Member
Registered: 2017-04-07
Posts: 505  
Website

Re: [Solved] Minor issue with shutdown, some process failing to stop

nixer wrote:

Sorry to resurrect this old thread but, care to share how you got it sorted out?  I know there is a problem with rsyslog in ascii, but I have one install of jessie (devuan) that does have this problem.  Is it easier just to use a different logging program like syslog-ng or busybox-syslogd?

Sorry, I should have posted at least the short version, basically I had wiped out two log files in /var/log/  using the snapshot exclusions when I made the iso.

Almost all files in /var/log/ are automagically re-generated on a new install, but there were some that don't, and rsyslog was hanging because it was trying to write to two files that didn't exist.

I'm pretty sure it was "btmp" and "wtmp" but I had also excluded the /var/log/fsck/  folder which has two files in it, it's possible they may have been the ones, that's as close as I got it narrowed down.

I replaced those files and the problem went away immediately.


https://sourceforge.net/projects/vuu-do/
Vuu-do GNU/Linux, minimal Devuan-based openbox systems to build on, maximal versions if you prefer your linux fully-loaded.

Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#6 2017-09-14 23:25:23

nixer
Member
From: North Carolina, USA
Registered: 2016-11-30
Posts: 185  

Re: [Solved] Minor issue with shutdown, some process failing to stop

I'm pretty sure it was "btmp" and "wtmp" but I had also excluded the /var/log/fsck/  folder which has two files in it

I manually added the folder /var/log/fsck and it immediately populated it with two files as you mentioned.  I also added the two files btmp and wtmp but only the wtmp file is being used.  The btmp file still has a size of 0 bytes after several reboots.

I promise you this machine shuts down faster and with no errors.  Thanks!

Offline

#7 2017-09-15 07:28:25

ralph.ronnquist
Administrator
From: Clifton Hill, Victoria, AUS
Registered: 2016-11-30
Posts: 1,106  

Re: [Solved] Minor issue with shutdown, some process failing to stop

Make a failed login attempt and see that btmp has grown smile

man last
man lastb

Offline

#8 2017-09-15 23:31:12

nixer
Member
From: North Carolina, USA
Registered: 2016-11-30
Posts: 185  

Re: [Solved] Minor issue with shutdown, some process failing to stop

Make a failed login attempt and see that btmp has grown

Well it sure did.  Thanks.

Offline

Board footer