From 8ddb7f28b98fe943582853d79150db1a61938d26 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Sun, 15 Mar 2026 15:38:06 +0100 Subject: [PATCH] cron: fix NAMESPACE path to /tmp/ns.$USER.$DISPLAY; add PLAN9 export Co-Authored-By: Claude Sonnet 4.6 --- mkfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkfile b/mkfile index 37ce854..cd26e7a 100644 --- a/mkfile +++ b/mkfile @@ -59,8 +59,8 @@ install:V: build cron-install:V: mkdir -p $HOME/.local/share/anvillm crontab -l 2>/dev/null | grep -v 'anvillm-supervisor' >/tmp/crontab.new || true - echo "*/5 * * * * export PLAN9=$HOME/plan9; export PATH=$HOME/bin:$HOME/go/bin:$PLAN9/bin:/usr/local/bin:/usr/bin:/bin; export DISPLAY=$DISPLAY; export NAMESPACE=$NAMESPACE; $HOME/bin/anvillm-supervisor --orphans >>$HOME/.local/share/anvillm/worker-check.log 2>&1" >>/tmp/crontab.new - echo "*/1 * * * * export PLAN9=$HOME/plan9; export PATH=$HOME/bin:$HOME/go/bin:$PLAN9/bin:/usr/local/bin:/usr/bin:/bin; export DISPLAY=$DISPLAY; export NAMESPACE=$NAMESPACE; $HOME/bin/anvillm-supervisor --nudge >>$HOME/.local/share/anvillm/worker-check.log 2>&1" >>/tmp/crontab.new + echo "*/5 * * * * export PLAN9=$PLAN9; export NAMESPACE=/tmp/ns.$USER.$DISPLAY; export PATH=$PATH; $HOME/bin/anvillm-supervisor --orphans >>$HOME/.local/share/anvillm/worker-check.log 2>&1" >>/tmp/crontab.new + echo "*/1 * * * * export PLAN9=$PLAN9; export NAMESPACE=/tmp/ns.$USER.$DISPLAY; export PATH=$PATH; $HOME/bin/anvillm-supervisor --nudge >>$HOME/.local/share/anvillm/worker-check.log 2>&1" >>/tmp/crontab.new crontab /tmp/crontab.new rm /tmp/crontab.new echo "cron installed: anvillm-supervisor (orphans: every 5m, nudge: every 1m)"