Skip to content

v1.1.9

Choose a tag to compare

@ethandacat ethandacat released this 11 May 02:29
· 12 commits to main since this release

Fix: stop/restart/deploy now reliably kills site processes running as lh-* users.

Root cause: site processes run as lh- (different UID from the panel). The panel user cannot send SIGKILL to another user's process without root. All previous kill attempts silently failed with EPERM.

Changes:

  • stopSite: cgroup.kill first (kernel-enforced, no UID check), then sudo pkill -KILL -u lh-, then direct proc.kill for non-isolated sites, then sudo fuser -k as last resort
  • recoverProcesses: after panel restart, finds surviving PIDs via ss and re-adds them to their cgroups so cgroup.kill works immediately on stop
  • install.sh: adds NOPASSWD sudoers rules for pkill and fuser

VPS manual patch required before updating:

sudo tee -a /etc/sudoers.d/litehost << 'SUDOEOF'
litehost ALL=(root) NOPASSWD: /usr/bin/pkill -KILL -u lh-*
litehost ALL=(root) NOPASSWD: /bin/fuser -k *
SUDOEOF

Then run: sudo litehost update