Configure Pods for scheduled shutdown using systemd.
This guide explains how to set up automatic shutdown for a Pod using systemd. systemd is a system and service manager for Linux that provides a reliable and flexible way to manage services and tasks, including scheduled shutdowns.
We advise against using this feature for Pods running long-duration or overnight scripts, as it will forcibly terminate the Pod while the script is in progress.
To initiate a hard shutdown, create a systemd service unit file named /etc/systemd/system/force-shutoff.service with the following content:
Next, create a systemd timer unit file named /etc/systemd/system/force-shutoff.timer to specify the shutdown schedule:
# /etc/systemd/system/force-shutoff.timer[Unit]Description=Forcedly shut off this pod at 5pm[Timer]OnCalendar=*-*-* 17:00:00 America/Los_Angeles[Install]WantedBy=timers.target
Enable and start the timer service using the following command:
systemctl enable --now force-shutoff.timer
If you need to change the shutdown time in the future, update the time in /etc/systemd/system/force-shutoff.timer, and then reload all systemd configurations within the Pod by running:
systemctl daemon-reload
If you want to disable the scheduled shutdown in the future, use the following command:
systemctl disable force-shutoff.timer
By following these steps, you can configure your Pod to perform a scheduled hard shutdown using systemd. This ensures that your Pod shuts down automatically at the specified time, helping you manage resources efficiently.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"LatchBio","colors":{"primary":"#001AAE","light":"#92A2FF","dark":"#92A2FF"},"logo":{"light":"https://mintcdn.com/latchbio/rAgK9Jh7PMGtmcOA/logo/light.svg?fit=max\u0026auto=format\u0026n=rAgK9Jh7PMGtmcOA\u0026q=85\u0026s=4d10f1ae3113e21d7923ecaec6c9557e","dark":"https://mintcdn.com/latchbio/rAgK9Jh7PMGtmcOA/logo/dark.svg?fit=max\u0026auto=format\u0026n=rAgK9Jh7PMGtmcOA\u0026q=85\u0026s=6385a39407ab99828572d5b3b26c00d6"},"favicon":"https://mintcdn.com/latchbio/AQfMXqpyiLJx3G2h/favicon.png?fit=max\u0026auto=format\u0026n=AQfMXqpyiLJx3G2h\u0026q=85\u0026s=9420e120f36246f73ecd4753289382a6","navbar":{"links":[{"href":"mailto:support@latch.bio","label":"Contact Us"},{"href":"https://console.latch.bio/","label":"Log In"}],"primary":{"type":"button","label":"Sign Up","href":"https://console.latch.bio/signup"}},"footer":{"socials":{"twitter":"https://twitter.com/latchbio","linkedin":"https://www.linkedin.com/company/latchbio"}},"errors":{"404":{"redirect":false,"title":"Page Not Found","description":"The page might have been moved or been removed.\n \u003cCallout icon=\"arrow-right\" color=\"#001AAE\" iconType=\"regular\">Go to [Home](/)\u003c/Callout> \n \u003cCallout icon=\"arrow-right\" color=\"#001AAE\" iconType=\"regular\">Check out [Developer Docs](/docs)\u003c/Callout>"}},"styling":{"latex":true},"integrations":{"koala":{"publicApiKey":"pk_0469d6299947a84c711662e1ed49f0fea8d7"}},"navigation":{"global":{"tabs":[{"tab":"Blog","href":"https://latchbio.substack.com/"},{"tab":"Website","href":"https://latch.bio/"},{"tab":"Change Log","href":"https://latchbio.notion.site/LatchBio-Product-Change-Logs-ca76a6ae05a74a4daf78cb4006ad80ac"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"latchbio","hasAudioNarration":false,"actualSubdomain":"latchbio","customDomains":["wiki.latch.bio"],"gitSource":{"type":"github","owner":"latchbio","repo":"wiki","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af265145dfd3b833eca24fb","clientVersion":"0.0.4205","searchFilterCounts":[{"language":"default","tag":"Workflows \u0026 SDK","count":66},{"language":"default","tag":"Plots","count":56},{"language":"default","tag":"Developer Tools","count":37},{"language":"default","tag":"Pods","count":24},{"language":"default","tag":"Agent","count":22},{"language":"default","tag":"Registry","count":20},{"language":"default","tag":"Administration","count":19},{"language":"default","tag":"Data","count":19},{"language":"default","tag":"Ready-to-Use Workflows","count":15},{"language":"default","tag":"Cell Types","count":14}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"pods/hard-shutdown","slug":"/pods/hard-shutdown","pageMetadata":{"title":"Configuring Auto Shutdown","icon":"screwdriver-wrench","iconType":"solid","description":"Configure Pods for scheduled shutdown using systemd.","href":"/pods/hard-shutdown"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Configure Pods for scheduled shutdown using systemd.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`This guide explains how to set up automatic shutdown for a Pod using `,_jsx(_components.code,{children:`systemd`}),`. `,_jsx(_components.code,{children:`systemd`}),` is a system and service manager for Linux that provides a reliable and flexible way to manage services and tasks, including scheduled shutdowns.`]}),`\n`,_jsx(Warning,{children:`We advise against using this feature for Pods running long-duration or overnight scripts, as it will forcibly terminate the Pod while the script is in progress.`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`To initiate a hard shutdown, create a systemd service unit file named `,_jsx(_components.code,{children:`/etc/systemd/system/force-shutoff.service`}),` with the following content:`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# /etc/systemd/system/force-shutoff.service`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[Unit]`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Description`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Forcedly`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` shut`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` off`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` this`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pod`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[Service]`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`exec`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Restart`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`on-failure`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SyslogIdentifier`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`%N`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ExecStart`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/usr/bin/env`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` bash`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ' \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` curl https://nucleus.latch.bio/pods/stop \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` -H \"Content-Type: application/json\" \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` -H \"Authorization: Latch-SDK-Token $(cat /root/.latch/token)\" \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` --data \"{\\\\\\\\\"pod_id\\\\\\\\\": $(cat /root/.latch/id)}\" \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '`})}),`\n`]})})}),`\n`,_jsxs(_components.ol,{start:`2`,children:[`\n`,_jsxs(_components.li,{children:[`Next, create a systemd timer unit file named `,_jsx(_components.code,{children:`/etc/systemd/system/force-shutoff.timer`}),` to specify the shutdown schedule:`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# /etc/systemd/system/force-shutoff.timer`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[Unit]`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Description`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Forcedly`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` shut`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` off`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` this`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pod`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` at`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 5pm`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[Timer]`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`OnCalendar`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`*-*-*`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` 17:00:00`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` America/Los_Angeles`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[Install]`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`WantedBy`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`timers.target`})]}),`\n`]})})}),`\n`,_jsxs(_components.ol,{start:`3`,children:[`\n`,_jsx(_components.li,{children:`Enable and start the timer service using the following command:`}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellsession`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellsession`,children:_jsxs(_components.code,{language:`shellsession`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`systemctl enable --now force-shutoff.timer`})}),`\n`]})})}),`\n`,_jsxs(_components.ol,{start:`4`,children:[`\n`,_jsxs(_components.li,{children:[`If you need to change the shutdown time in the future, update the time in `,_jsx(_components.code,{children:`/etc/systemd/system/force-shutoff.timer`}),`, and then reload all systemd configurations within the Pod by running:`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellsession`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellsession`,children:_jsxs(_components.code,{language:`shellsession`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`systemctl daemon-reload`})}),`\n`]})})}),`\n`,_jsxs(_components.ol,{start:`5`,children:[`\n`,_jsx(_components.li,{children:`If you want to disable the scheduled shutdown in the future, use the following command:`}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellsession`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellsession`,children:_jsxs(_components.code,{language:`shellsession`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`systemctl disable force-shutoff.timer`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`By following these steps, you can configure your Pod to perform a scheduled hard shutdown using systemd. This ensures that your Pod shuts down automatically at the specified time, helping you manage resources efficiently.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Configuring Auto Shutdown","icon":"screwdriver-wrench","iconType":"solid","description":"Configure Pods for scheduled shutdown using systemd.","href":"/pods/hard-shutdown"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/latchbio/1643336dc262c788/syft.js","/_mintlify/custom/latchbio/1643336dc262c788/data/syft.js","/_mintlify/custom/latchbio/1643336dc262c788/start/syft.js","/_mintlify/custom/latchbio/1643336dc262c788/wiki/syft.js","/_mintlify/custom/latchbio/1643336dc262c788/workflows/syft.js"],"subdomain":"latchbio","siteName":"LatchBio","title":"Configuring Auto Shutdown - LatchBio","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-23T20:48:03.496Z","originalFileLocation":"pods/hard-shutdown.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Configure Pods for scheduled shutdown using systemd.\">\u003cmeta data-mint-head name=\"application-name\" content=\"LatchBio\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/latchbio/RhSEdiC7Zz8UPgc7/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/latchbio/RhSEdiC7Zz8UPgc7/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/latchbio/RhSEdiC7Zz8UPgc7/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/latchbio/RhSEdiC7Zz8UPgc7/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/latchbio/RhSEdiC7Zz8UPgc7/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/latchbio/RhSEdiC7Zz8UPgc7/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/latchbio/RhSEdiC7Zz8UPgc7/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/latchbio/RhSEdiC7Zz8UPgc7/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/latchbio/RhSEdiC7Zz8UPgc7/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Configuring Auto Shutdown - LatchBio\">\u003cmeta data-mint-head property=\"og:description\" content=\"Configure Pods for scheduled shutdown using systemd.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"LatchBio\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://wiki.latch.bio/pods/hard-shutdown\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://latchbio.mintlify.site/_mintlify/api/og/v2?division=Shutdown+Configuration\u0026amp;title=Configuring+Auto+Shutdown\u0026amp;description=Configure+Pods+for+scheduled+shutdown+using+systemd.\u0026amp;theme=d90b8111872316c70d8029f9\u0026amp;signature=6c6a6fe2ab9accb42c856e01e46eab7849a3e81e0432182be44b8708b6456b36\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Configuring Auto Shutdown - LatchBio\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Configure Pods for scheduled shutdown using systemd.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://latchbio.mintlify.site/_mintlify/api/og/v2?division=Shutdown+Configuration\u0026amp;title=Configuring+Auto+Shutdown\u0026amp;description=Configure+Pods+for+scheduled+shutdown+using+systemd.\u0026amp;theme=d90b8111872316c70d8029f9\u0026amp;signature=6c6a6fe2ab9accb42c856e01e46eab7849a3e81e0432182be44b8708b6456b36\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/latchbio/RhSEdiC7Zz8UPgc7/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"LatchBio\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#001AAE\">\u003clink data-mint-head rel=\"canonical\" href=\"https://wiki.latch.bio/pods/hard-shutdown\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/pods/hard-shutdown.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://wiki.latch.bio/#organization\",\"name\":\"LatchBio\",\"url\":\"https://wiki.latch.bio\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/latchbio/rAgK9Jh7PMGtmcOA/logo/light.svg?fit=max\u0026auto=format\u0026n=rAgK9Jh7PMGtmcOA\u0026q=85\u0026s=4d10f1ae3113e21d7923ecaec6c9557e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://wiki.latch.bio#website\",\"name\":\"LatchBio\",\"url\":\"https://wiki.latch.bio\",\"publisher\":{\"@id\":\"https://wiki.latch.bio/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://wiki.latch.bio/pods/hard-shutdown#webpage\",\"url\":\"https://wiki.latch.bio/pods/hard-shutdown\",\"name\":\"Configuring Auto Shutdown\",\"description\":\"Configure Pods for scheduled shutdown using systemd.\",\"dateModified\":\"2026-01-23T20:48:03.496Z\",\"isPartOf\":{\"@id\":\"https://wiki.latch.bio#website\"},\"breadcrumb\":{\"@id\":\"https://wiki.latch.bio/pods/hard-shutdown#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://wiki.latch.bio/pods/hard-shutdown#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Pods\",\"item\":\"https://wiki.latch.bio/pods/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Shutdown Configuration\",\"item\":\"https://wiki.latch.bio/pods/auto-shutdown\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Configuring Auto Shutdown\",\"item\":\"https://wiki.latch.bio/pods/hard-shutdown\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://wiki.latch.bio/pods/hard-shutdown#article\",\"headline\":\"Configuring Auto Shutdown\",\"name\":\"Configuring Auto Shutdown\",\"description\":\"Configure Pods for scheduled shutdown using systemd.\",\"url\":\"https://wiki.latch.bio/pods/hard-shutdown\",\"mainEntityOfPage\":{\"@id\":\"https://wiki.latch.bio/pods/hard-shutdown#webpage\"},\"dateModified\":\"2026-01-23T20:48:03.496Z\",\"publisher\":{\"@id\":\"https://wiki.latch.bio/#organization\"},\"isPartOf\":{\"@id\":\"https://wiki.latch.bio#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"LatchBio\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"LatchBio\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/pods/hard-shutdown.md","siteName":"LatchBio","nav":{"global":{"tabs":[{"tab":"Blog","href":"https://latchbio.substack.com/"},{"tab":"Website","href":"https://latch.bio/"},{"tab":"Change Log","href":"https://latchbio.notion.site/LatchBio-Product-Change-Logs-ca76a6ae05a74a4daf78cb4006ad80ac"}]},"anchors":[{"anchor":"Introduction","icon":"house","pages":[{"title":"Introduction","href":"/start/introduction"}]},{"anchor":"Data","icon":"file-chart-column","pages":[{"title":"Data","href":"/data/overview"}]},{"anchor":"Registry","icon":"table","pages":[{"title":"Registry","href":"/registry/what-is-a-registry"}]},{"anchor":"Workflows \u0026 SDK","icon":"screwdriver-wrench","pages":[{"title":"Workflows \u0026 SDK","href":"/workflows/overview"}]},{"anchor":"Pods","icon":"hexagon","groups":[{"group":"Pods","pages":[{"title":"What are Latch Pods?","sidebarTitle":"Overview","icon":"magnifying-glass","iconType":"solid","href":"/pods/overview"},{"title":"Latch Pods Basics","icon":"hexagon","iconType":"solid","href":"/pods/getting-started"},{"title":"Accessing Latch Data in Pod using Latch Data FUSE","icon":"file-chart-column","iconType":"solid","href":"/pods/mount-data"},{"group":"Shutdown Configuration","pages":[{"title":"Setting Up Auto Shutdown from Latch","icon":"hourglass-clock","iconType":"solid","description":"Pods allow easy customization of auto shutdown interval when inactive.","href":"/pods/auto-shutdown"},{"title":"Configuring Auto Shutdown","icon":"screwdriver-wrench","iconType":"solid","href":"/pods/hard-shutdown"}]},{"title":"Host a Custom App","icon":"grid-2","iconType":"solid","description":"Latch Pods make it easy to host any custom application, such as Dash Apps, RShiny, Streamlit, and more, on Latch.","href":"/pods/custom-app"},{"title":"Pod Templates","icon":"layer-group","iconType":"solid","href":"/pods/templates"},{"title":"Custom File Viewer","icon":"browser","iconType":"solid","href":"/pods/file-viewer"},{"group":"Access \u0026 Integrations","pages":[{"title":"Set up SSH Access","icon":"square-terminal","iconType":"solid","href":"/pods/ssh"},{"title":"Integration with VSCode","icon":"display-code","iconType":"solid","href":"/pods/integration-with-vscode"},{"title":"Integration with GitHub","icon":"github","iconType":"solid","href":"/pods/integration-with-github"}]},{"title":"Setup Forch Domain / BYOC (Beta)","sidebarTitle":"Setup Forch Domain / BYOC (Beta)","icon":"aws","iconType":"solid","href":"/pods/forch-byoc"}]}]},{"anchor":"Plots","icon":"chart-scatter-bubble","pages":[{"title":"Plots","href":"/plots/overview"}]},{"anchor":"Agent","icon":"robot","pages":[{"title":"Agent","href":"/agent/overview"}]},{"anchor":"Curate","icon":"dna","pages":[{"title":"Curate","href":"/curate/overview"}]},{"anchor":"Administration","icon":"screen-users","pages":[{"title":"Administration","href":"/admin/overview"}]},{"anchor":"Resources","icon":"clipboard-question","pages":[{"title":"Resources","href":"/resources/faq"}]},{"anchor":"API Reference","icon":"webhook","pages":[{"title":"API Reference","href":"/reference/sdk"}]}]},"basePath":"","title":"Configuring Auto Shutdown - LatchBio","deploymentId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","buildId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","dynamics":[],"chunks":[]}