chore: log about context loading
This commit is contained in:
parent
dbd9d39da9
commit
868d85bbeb
5 changed files with 17 additions and 3 deletions
|
|
@ -7,6 +7,9 @@ import { HeadscaleError, pull } from '~/utils/headscale'
|
|||
|
||||
import type { Integration } from '.'
|
||||
|
||||
// Integration name
|
||||
const name = 'Docker'
|
||||
|
||||
let url: URL | undefined
|
||||
let container: string | undefined
|
||||
|
||||
|
|
@ -121,4 +124,4 @@ async function restart() {
|
|||
}
|
||||
}
|
||||
|
||||
export default { preflight, sighup, restart } satisfies Integration
|
||||
export default { name, preflight, sighup, restart } satisfies Integration
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import docker from './docker'
|
|||
import proc from './proc'
|
||||
|
||||
export interface Integration {
|
||||
name: string
|
||||
preflight: () => Promise<boolean>
|
||||
sighup?: () => Promise<void>
|
||||
restart?: () => Promise<void>
|
||||
|
|
|
|||
|
|
@ -5,6 +5,9 @@ import { kill } from 'node:process'
|
|||
|
||||
import type { Integration } from '.'
|
||||
|
||||
// Integration name
|
||||
const name = 'Native Linux (/proc)'
|
||||
|
||||
// Check if we have a /proc and if it's readable
|
||||
async function preflight() {
|
||||
if (platform() !== 'linux') {
|
||||
|
|
@ -77,4 +80,4 @@ async function sighup() {
|
|||
}
|
||||
}
|
||||
|
||||
export default { preflight, sighup } satisfies Integration
|
||||
export default { name, preflight, sighup } satisfies Integration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue