-
-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PID files aren't getting cleaned up after a hard restart/crash #727
Comments
Also, yes, Homebrew doesn't automatically run
|
That's cool, at least I know why it won't start and can get it working again relatively easily. |
不要下载我前段时间发的文件,那不是我发的,是另一个人控制我,如果你使用了这个病毒文件,你也会被控制,并且疯狂转发这个病毒 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Any way to just keep the issue open without having to comment to remove the stale label all the time? Or is there a better place to keep this request? |
If nobody wants to act on it there isn't really a need to keep it open |
Little soon to be saying that already don't you think? This has been pending for barely a month, I don't expect anyone to have time that quickly. |
@GottemHams In this case: no-one else has chipped in (user or maintainer) with either "I have a similar problem" or "I would like to work on this" which is why we're closing this out. |
That's probably because not many people are even looking at this particular repo to begin with. |
The crash was not related to anything Homebrew, but after it booted back up I noticed Apache wouldn't start. Trying some things, it looks like the PID file it originally created keeps lingering around and Apache itself refuses to start because of it. The same will probably true for any other service that uses PID files on its own.
Some shell output, with extra line breaks to make it a bit more readable:
Since Homebrew does know that the service is not actually running despite there being an actual process with that exact PID, I would presume that it's fairly easy to recognise if the PID file should be removed/emptied upon receiving a
start
command?Also notice how I need to explicitly stop the service first, even though
brew services
already saysstopped
. I think Homebrew doesn't automaticallylaunchctl bootout
when the service previously stopped unexpectedly (or never fully starts up, in this case)? So it tries to executelaunchctl bootstrap
for a service that's still "active", resulting in that particular error. While technically this makes perfect sense, it's a bit inconsistent with the output ofbrew services
saying it's stopped. You would expect simplybrew services start ...
to be sufficient.In case it matters: the version of my
homebrew-services
is commit34637816b6d34a6f9414758ceaa410437c4e997c
, which should be latestmaster
.The text was updated successfully, but these errors were encountered: