-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathappctl.1
More file actions
46 lines (46 loc) · 1.64 KB
/
appctl.1
File metadata and controls
46 lines (46 loc) · 1.64 KB
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
37
38
39
40
41
42
43
44
45
46
.TH appctl 1
'''
.SH NAME
\fBappctl\fR \- control tool for \fBapphub\fR(8).
'''
.SH SYNOPSIS
.IP "\fBappctl\fR" 4
Show the list of applications (running and recently died).
.IP "\fBappctl spawn \fIname\fR [\fIarguments\fR]" 4
Start one more instance of the named applications. Does not check whether
any are running already.
.IP "\fBappctl sigterm \fIxid\fR" 4
Send SIGTERM to a given process.
.IP "\fBappctl sigkill \fIxid\fR" 4
Ditto, SIGKILL.
.IP "\fBappctl show \fIxid\fR" 4
Dump output buffer for a given application onto stdout.
.IP "\fBappctl flush \fIxid\fR" 4
Empty output buffer, and remove the application from the list if it is dead.
'''
.SH NOTES
The \fIname\fR of the application is the name of the script in the config
directory that \fBapphub\fR spawns; \fBappctl start \fIfoo\fR is a request
for \fBapphub\fR to spawn \fB/etc/apphub/\fIfoo\fR.
.P
Application entries managed by \fIapphub\fR are identified by their \fIxid\fR.
Running \fBappctl\fR with no arguments shows possible \fIxid\fRs for used with
other commands.
.P
\fBapphub\fR keeps entries for all running applications, and also for those that
died with non-zero exit status, or with non-empty output buffer. This is to allow
the user to investigate abnormal exit if necessary. For any given \fIname\fR, at
most one dead entry (the last one to die) is kept.
.P
\fBappctl\fR captures and passes its environment along with \fIarguments\fR to
the newly spawned processes. This can be used to pass DISPLAY to X11 clients,
or WAYLAND_DISPLAY to Wayland ones.
'''
.SH FILES
.IP "/etc/apphub" 4
Configuration directory for \fBapphub\fR.
.IP "/run/ctrl/apphub" 4
Control socket.
'''
.SH SEE ALSO
\fBapphub\fR(8).