File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ This repository contains scripts for:
100100|`check-changes.sh`
101101|Git status checker for CI/CD pipelines
102102
103- |`reboot-tracker.ts `
103+ |`reboot-tracker.mjs `
104104|Deno script to track system reboot reasons with journalctl/dmesg capture
105105|===
106106
Original file line number Diff line number Diff line change 1- // scripts/reboot-tracker.ts
1+ // scripts/reboot-tracker.mjs
22import { join } from "https://deno.land/std@0.224.0/path/mod.ts" ;
33import { parseArgs } from "https://deno.land/std@0.224.0/cli/parse_args.ts" ;
44
@@ -17,7 +17,7 @@ const BASE_DIR = "monitoring/reboot-tracker/logs";
1717const LOG_FILE = join ( BASE_DIR , "reboot-reasons.json" ) ;
1818const SNAPSHOT_DIR = join ( BASE_DIR , "snapshots" ) ;
1919
20- async function captureLogs ( timestamp : string ) : Promise < string | null > {
20+ async function captureLogs ( timestamp ) {
2121 const filename = `snapshot-${ timestamp . replace ( / [: .] / g, "-" ) } .log` ;
2222 const filepath = join ( SNAPSHOT_DIR , filename ) ;
2323
Original file line number Diff line number Diff line change 55# alias shutdown='bash /var$REPOS_DIR/scripts/reboot.sh --shutdown'
66
77DENO_BIN=" /home/hyper/.deno/bin/deno"
8- TRACKER_TS=" /var$REPOS_DIR /scripts/reboot-tracker.ts "
8+ TRACKER_TS=" /var$REPOS_DIR /scripts/reboot-tracker.mjs "
99
1010# Parse args
1111IS_SHUTDOWN=false
You can’t perform that action at this time.
0 commit comments