virtuosoft-dev / hcpp-vscode

A plugin for Hestia Control Panel (via hesitacp-pluginable) that furnishes multi-tenant Open Visual Studio Code Servers preconfigured for step-by-step debugging (Xdebug) for users and their hosted domains.
GNU General Public License v3.0
2 stars 0 forks source link

Auto-shutdown/restart on inactivity/login #1

Closed Steveorevo closed 2 months ago

Steveorevo commented 3 months ago

Feature request/enhancement: Consider hooking the priv_update_sys_rrd event to monitor .openvscode-server/data/logs for activity. If none, shutdown the user's node process to free memory/cpu. Hook HestiaCP login event to start node process on login (given SHELL=bash).

Steveorevo commented 2 months ago

Implemented in https://github.com/virtuosoft-dev/hcpp-vscode/commit/d4540b7894eae620829bb238ba195d4bc181b8b4