chore: log about context loading

This commit is contained in:
Aarnav Tale
2024-05-30 10:28:37 -04:00
parent dbd9d39da9
commit 868d85bbeb
5 changed files with 17 additions and 3 deletions
+4 -1
View File
@@ -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
+1
View File
@@ -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>
+4 -1
View File
@@ -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