Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18596 - /var/run/*pid not being cleaned up.
Summary: /var/run/*pid not being cleaned up.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-01 12:44 UTC by Torgeir Hansen
Modified: 2003-04-06 23:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Torgeir Hansen 2003-04-01 12:44:07 UTC
My example:
If you use gpm and it or your computer crashes, gpm will just bitch about gpm
running already as a /var/run/gpm.pid exists, /var/run/*pid should be cleaned up
before services are started during boot!

Reproducible: Always
Steps to Reproduce:
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-06 05:16:37 UTC
It will be the case if you try to restart it without rebooting.

Do this test:

  # rc-update del gpm
  # /etc/init.d/gpm stop zap
  # touch /var/run/gpm.pid

Now reboot, and check if /var/run/gpm.pid still exists.  You should
see that it is gone.

The only reason it will be there, is if you have gpm to start at boot,
but it crashes, and the gpm init script did not get a fail status from
gpm, so marked it as started.
Comment 2 Torgeir Hansen 2003-04-06 14:05:49 UTC
as I cannot reproduce it anymore it does appear to be a brainbug (or config-problem) ;]
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-06 23:32:41 UTC
Gpm was prob started on that reboot, but crashed.  I have some pid checking
that I need to finish and implement, but that is another bug.