From 9bed890aa889dad4c46b6d18fff8cbdac9feab1a Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Wed, 12 Feb 2020 21:31:09 -0500 Subject: Add sandman wrapper --- scripts/sandman.1 | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 scripts/sandman.1 (limited to 'scripts/sandman.1') diff --git a/scripts/sandman.1 b/scripts/sandman.1 new file mode 100644 index 0000000..35765ec --- /dev/null +++ b/scripts/sandman.1 @@ -0,0 +1,36 @@ +.Dd February 12, 2020 +.Dt SANDMAN 1 +.Os +. +.Sh NAME +.Nm sandman +.Nd sleep wrapper +. +.Sh SYNOPSIS +.Nm +.Op Fl t Ar secs +.Ar command ... +. +.Sh DESCRIPTION +The +.Nm +utility wraps a +.Ar command , +sending it +.Dv SIGHUP +when the system goes to sleep, +and restarting it +when the system wakes. +. +.Pp +The arguments are as follows: +.Bl -tag -width Ds +.It Fl t Ar secs +Wait for +.Ar secs +before restarting the process. +The default is 8 seconds. +.El +. +.Sh AUTHORS +.An June Bug Aq Mt june@causal.agency -- cgit 1.4.1-2-gfad0