summary refs log tree commit diff
path: root/scripts/sandman.1
blob: 92828c0fa102e4ea3cd3709a3553d2786de05c6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 McEnroe Aq Mt june@causal.agency