#machine #automatic #period #down #shutdown #shut #inactivity

deprecated app autoshutdown

Automatically shut down the machine after a period of inactivity

2 releases

Uses old Rust 2015

0.1.1 Mar 17, 2024
0.1.0 Apr 16, 2018

#27 in #period

Download history 5/week @ 2024-02-17 2/week @ 2024-02-24 1/week @ 2024-03-09 129/week @ 2024-03-16 6/week @ 2024-03-23 15/week @ 2024-03-30

151 downloads per month

Apache-2.0

9KB
91 lines

autoshutdown

This tool is no longer under active development. If you are interested in taking over or repurposing the name on crates.io, feel free to contact me: nbishop@nbishop.net

Automatically shut down the machine after a period of inactivity.

The last-modified time of a file (default: /run/last_heartbeat) is used to indicate when the machine was last active. The file is checked at a fixed interval (default: one minute). There is a grace period (default: five minutes) before the machine is powered off, by which time a new heartbeat may have arrived.

The check-interval and grace-duration arguments accept numbers with a unit: h, m, or s. For example, 5m indicates five minutes.

The default shutdown command is poweroff.

Dependencies

~6.5MB
~131K SLoC