René's URL Explorer Experiment


Title: "mkdocs serve" does not cleanup after a SIGTERM · Issue #3905 · mkdocs/mkdocs · GitHub

Open Graph Title: "mkdocs serve" does not cleanup after a SIGTERM · Issue #3905 · mkdocs/mkdocs

X Title: "mkdocs serve" does not cleanup after a SIGTERM · Issue #3905 · mkdocs/mkdocs

Description: It looks like mkdocs does not handle SIGTERM and leaves its temporary site_dir in the /tmp directory. These directories are never cleaned up. mkdocs should handle SIGTERM and/or cleanup leftover /tmp directories on startup. My setup I ru...

Open Graph Description: It looks like mkdocs does not handle SIGTERM and leaves its temporary site_dir in the /tmp directory. These directories are never cleaned up. mkdocs should handle SIGTERM and/or cleanup leftover /t...

X Description: It looks like mkdocs does not handle SIGTERM and leaves its temporary site_dir in the /tmp directory. These directories are never cleaned up. mkdocs should handle SIGTERM and/or cleanup leftover /t...

Opengraph URL: https://github.com/mkdocs/mkdocs/issues/3905

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"mkdocs serve\" does not cleanup after a SIGTERM","articleBody":"It looks like mkdocs does not handle SIGTERM and leaves its temporary site_dir in the /tmp directory. These directories are never cleaned up. mkdocs should handle SIGTERM and/or cleanup leftover /tmp directories on startup.\n\n#### My setup\nI run mkdocs inside a docker container [see the [mkdocs-material project](https://github.com/squidfunk/mkdocs-material)]. By default, the docker starts \"mkdocs serve\".\n\nThe issue occurs when the container is stopped. To stop a container, docker [sends SIGTERM](https://docs.docker.com/reference/cli/docker/container/stop/#description) to the main process and waits for the signal to be handled. In the case of mkdocs-material, the main process is tini, but tini already [forwards signals](https://github.com/krallin/tini/blob/master/src/tini.c#L526) to the child mkdocs process. To confirm the behaviour, I've also sent SIGTERM directly to mkdocs [eg. `kill -s TERM \u003cmkdocs-pid>`] and mkdocs still fails to clean up /tmp directories.\n","author":{"url":"https://github.com/toddke","@type":"Person","name":"toddke"},"datePublished":"2025-01-17T00:34:16Z","url":"https://github.com/mkdocs/mkdocs/issues/3905"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d6db79c2-cf53-78de-28e0-c9f40d7db4a0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id85AE:24598E:17E061:1EECC6:6AEBEAA3
html-safe-nonce66f1f356b699a2caf20d7b113c6671dd2afe7003f98039b86d4d954600c91a9f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUFFOjI0NTk4RToxN0UwNjE6MUVFQ0M2OjZBRUJFQUEzIiwidmlzaXRvcl9pZCI6IjU3NjA4MDg1NjE4MzAyNTkzNjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5ea9c8e64b06c5c5c349e2a6111fe43a2b1c7128cdfb04ea7afb4d62f2b35a97
hovercard-subject-tagissue:2794119023
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/mkdocs/mkdocs/3905/issue_layout
twitter:imagehttps://opengraph.githubassets.com/00c93d4ee0f60837999a7bdabba8d5b5315ab44a642d530e57e7862c6f5127ab/mkdocs/mkdocs/issues/3905
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/00c93d4ee0f60837999a7bdabba8d5b5315ab44a642d530e57e7862c6f5127ab/mkdocs/mkdocs/issues/3905
og:image:altIt looks like mkdocs does not handle SIGTERM and leaves its temporary site_dir in the /tmp directory. These directories are never cleaned up. mkdocs should handle SIGTERM and/or cleanup leftover /t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametoddke
hostnamegithub.com
expected-hostnamegithub.com
Nonecb4fe414357cc0dbc2996fde3e4947524ebbb7f50a92a6e6934fee909acf2c00
turbo-cache-controlno-preview
go-importgithub.com/mkdocs/mkdocs git https://github.com/mkdocs/mkdocs.git
octolytics-dimension-user_id9692741
octolytics-dimension-user_loginmkdocs
octolytics-dimension-repository_id15830664
octolytics-dimension-repository_nwomkdocs/mkdocs
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id15830664
octolytics-dimension-repository_network_root_nwomkdocs/mkdocs
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5295beeefa36b9ce5c704f35fdc483ebb6f2cb19
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/mkdocs/mkdocs/issues/3905#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmkdocs%2Fmkdocs%2Fissues%2F3905
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmkdocs%2Fmkdocs%2Fissues%2F3905
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=mkdocs%2Fmkdocs
Reloadhttps://github.com/mkdocs/mkdocs/issues/3905
Reloadhttps://github.com/mkdocs/mkdocs/issues/3905
Reloadhttps://github.com/mkdocs/mkdocs/issues/3905
mkdocshttps://github.com/mkdocs
mkdocshttps://github.com/mkdocs/mkdocs
Codehttps://github.com/mkdocs/mkdocs
Issues120 (120)https://github.com/mkdocs/mkdocs/issues
Pull requests63 (63)https://github.com/mkdocs/mkdocs/pulls
Discussionshttps://github.com/mkdocs/mkdocs/discussions
Actionshttps://github.com/mkdocs/mkdocs/actions
Security and qualityhttps://github.com/mkdocs/mkdocs/security
Insightshttps://github.com/mkdocs/mkdocs/pulse
https://github.com/mkdocs/mkdocs
New issuehttps://github.com/login?return_to=https://github.com/mkdocs/mkdocs/issues/3905
New issuehttps://github.com/login?return_to=https://github.com/mkdocs/mkdocs/issues/3905
mkdocs-ng/mkdocs#36https://github.com/mkdocs-ng/mkdocs/pull/36
#4162https://github.com/mkdocs/mkdocs/pull/4162
"mkdocs serve" does not cleanup after a SIGTERMhttps://github.com/mkdocs/mkdocs/issues/3905#top
mkdocs-ng/mkdocs#36https://github.com/mkdocs-ng/mkdocs/pull/36
#4162https://github.com/mkdocs/mkdocs/pull/4162
Bughttps://github.com/mkdocs/mkdocs/issues?q=state%3Aopen%20label%3A%22Bug%22
Cleanuphttps://github.com/mkdocs/mkdocs/issues?q=state%3Aopen%20label%3A%22Cleanup%22
Command - servehttps://github.com/mkdocs/mkdocs/issues?q=state%3Aopen%20label%3A%22Command%20-%20serve%22
https://github.com/toddke
toddkehttps://github.com/toddke
on Jan 17, 2025https://github.com/mkdocs/mkdocs/issues/3905#issue-2794119023
mkdocs-material projecthttps://github.com/squidfunk/mkdocs-material
sends SIGTERMhttps://docs.docker.com/reference/cli/docker/container/stop/#description
forwards signalshttps://github.com/krallin/tini/blob/master/src/tini.c#L526
pawamoyhttps://github.com/pawamoy
Bughttps://github.com/mkdocs/mkdocs/issues?q=state%3Aopen%20label%3A%22Bug%22
Cleanuphttps://github.com/mkdocs/mkdocs/issues?q=state%3Aopen%20label%3A%22Cleanup%22
Command - servehttps://github.com/mkdocs/mkdocs/issues?q=state%3Aopen%20label%3A%22Command%20-%20serve%22
on Jan 17, 2025https://github.com/mkdocs/mkdocs/issues/3905#event-15969732417
https://github.com/pawamoy
pawamoyhttps://github.com/pawamoy
on Jan 17, 2025https://github.com/mkdocs/mkdocs/issues/3905#issuecomment-2597197665
https://github.com/alvaro-osvaldo-tm
alvaro-osvaldo-tmhttps://github.com/alvaro-osvaldo-tm
on Jan 25, 2025https://github.com/mkdocs/mkdocs/issues/3905#issuecomment-2613707076
alvaro-osvaldo-tmhttps://github.com/alvaro-osvaldo-tm
on Jan 27, 2025https://github.com/mkdocs/mkdocs/issues/3905#event-16071703436
fix: Fixed temporary directory cleanup after terminated by signal (mk…https://github.com/alvaro-osvaldo-tm/mkdocs/commit/2579a1bc33d15e9667a689f83d2fe694d70c52f9
mk…https://github.com/mkdocs/mkdocs/issues/3905
2579a1bhttps://github.com/alvaro-osvaldo-tm/mkdocs/commit/2579a1bc33d15e9667a689f83d2fe694d70c52f9
https://github.com/alvaro-osvaldo-tm
alvaro-osvaldo-tmhttps://github.com/alvaro-osvaldo-tm
on Jan 27, 2025https://github.com/mkdocs/mkdocs/issues/3905#issuecomment-2614712494
#3913https://github.com/mkdocs/mkdocs/pull/3913
https://github.com/toddke
toddkehttps://github.com/toddke
on Jan 27, 2025https://github.com/mkdocs/mkdocs/issues/3905#issuecomment-2614719952
@alvaro-osvaldo-tmhttps://github.com/alvaro-osvaldo-tm
alvaro-osvaldo-tmhttps://github.com/alvaro-osvaldo-tm
on Feb 6, 2025https://github.com/mkdocs/mkdocs/issues/3905#event-16213514314
fix: Fixed temporary directory cleanup after terminate signal (mkdocs…https://github.com/alvaro-osvaldo-tm/mkdocs/commit/12146922d65a84084c0bd79455d7d11d73402ba8
mkdocs…https://github.com/mkdocs/mkdocs/issues/3905
1214692https://github.com/alvaro-osvaldo-tm/mkdocs/commit/12146922d65a84084c0bd79455d7d11d73402ba8
fix: Fixed temporary directory cleanup after terminate signal (mkdocs…https://github.com/alvaro-osvaldo-tm/mkdocs/commit/8bef904119c33ad9af775b41fe4311c6c6fb4ab1
mkdocs…https://github.com/mkdocs/mkdocs/issues/3905
8bef904https://github.com/alvaro-osvaldo-tm/mkdocs/commit/8bef904119c33ad9af775b41fe4311c6c6fb4ab1
https://github.com/orias
oriashttps://github.com/orias
on Feb 27, 2026https://github.com/mkdocs/mkdocs/issues/3905#issuecomment-3975275469
https://private-user-images.githubusercontent.com/4196744/556192826-58e7c364-5747-4981-90fb-d6f78df52765.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTM4NDYyMjUsIm5iZiI6MTc5Mzg0NTkyNSwicGF0aCI6Ii80MTk2NzQ0LzU1NjE5MjgyNi01OGU3YzM2NC01NzQ3LTQ5ODEtOTBmYi1kNmY3OGRmNTI3NjUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEwNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMDVUMDIzMjA1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9M2RkOGY3MTNmN2UxODNjN2Q5NDE2NmQzZTZkYzk3YmVhMTQ0NWQyNWFhNGI3MTE4MjQ3NGVhYzA3MGJlYWViNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.pX_hOpoG2uUPXvh6c1bue6yQw8R9J_70jruzAJ1eZ_w
https://github.com/alvaro-osvaldo-tm
alvaro-osvaldo-tmhttps://github.com/alvaro-osvaldo-tm
on Mar 3, 2026https://github.com/mkdocs/mkdocs/issues/3905#issuecomment-3987739734
@oriashttps://github.com/orias
https://github.com/orias
oriashttps://github.com/orias
on Mar 3, 2026https://github.com/mkdocs/mkdocs/issues/3905#issuecomment-3987864342
Sign up for freehttps://github.com/signup?return_to=https://github.com/mkdocs/mkdocs/issues/3905
Sign in to commenthttps://github.com/login?return_to=https://github.com/mkdocs/mkdocs/issues/3905
Bughttps://github.com/mkdocs/mkdocs/issues?q=state%3Aopen%20label%3A%22Bug%22
Cleanuphttps://github.com/mkdocs/mkdocs/issues?q=state%3Aopen%20label%3A%22Cleanup%22
Command - servehttps://github.com/mkdocs/mkdocs/issues?q=state%3Aopen%20label%3A%22Command%20-%20serve%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.