Crates.io | autoshutdown |
lib.rs | autoshutdown |
version | 0.1.1 |
source | src |
created_at | 2018-04-16 13:55:27.989121 |
updated_at | 2024-03-17 17:11:33.780038 |
description | Automatically shut down the machine after a period of inactivity |
homepage | |
repository | https://github.com/nicholasbishop/autoshutdown |
max_upload_size | |
id | 60897 |
size | 29,107 |
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
.