A script for linux or unix. Will shutdown the server after inactivity is detected. Written for Nas4free but may work on other OS too. Can send also email if system will be shutdown.

The system will not shutdown if:
- a ZFS scrub or a resilver is in progress
- uptime is less then specified minutes
- avg cpu load in last 1min, 5min, 15min igher than specified
- any http or ssh session is active, this includes snapshots sent/received over ssh
- more SMB connections than specified
- there are still OPLOCKS on SMB (open files), this may not work reliable (sometimes Win keeps files forever open)

Project Activity

See All Activity >

Follow Idle shutdown

Idle shutdown Web Site

nel_h2
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Idle shutdown!

Additional Project Details

Registered

2015-10-01