-
Notifications
You must be signed in to change notification settings - Fork 23
/
manage-procs.txt
206 lines (142 loc) · 4.31 KB
/
manage-procs.txt
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
:man source: manage-procs
:man version: {revnumber}
:man manual: manage-procs Manual
MANAGE-PROCS(1)
===============
NAME
----
manage-procs - manage procServ instances as systemd new-style daemons
SYNOPSIS
--------
*manage-procs* [-h|--help] [--user] [--system] [-v]
'command' ['args']
DESCRIPTION
-----------
manage-procs(1) is a helper script for creating/maintaining procServ(1)
instances managed as systemd(1) new-style daemons.
Both user and system mode of systemd are supported. Specifying the *\--user*
options will consider the user unit configuration, while the *\--system*
option will consider the system unit configuration.
Configuration files defining procServ instances will reside in
----
/etc/procServ.conf
/etc/procServ.d/*.conf
----
for global systemd units or
----
~/.config/procServ.conf
~/.config/procServ.d/*.conf
----
for user systemd units. These configuration files contain blocks like
----
[instancename]
command = /bin/bash
## optional
#chdir = /
#user = nobody
#group = nogroup
#port=0 # default to dynamic assignment
----
The procServUtils package installs systemd generators that will generate
unit files from these configuration blocks.
GENERAL OPTIONS
---------------
*-h, \--help*::
Show a help message and exit.
*\--user*::
Consider user configuration.
*\--system*::
Consider system configuration. (default)
*-v, \--verbose*::
Increase verbosity level. (may be specified multiple times)
COMMANDS
--------
*manage-procs add* [-h] [-f] [-A] [-C 'dir'] [-P 'port'] [-U 'user'] [-G 'group'] 'name' 'command'...::
Create a new procServ instance.
*-h, \--help*:::
Show a help message and exit.
*-f, \--force*:::
Overwrite an existing instance of the same name.
*-A, \--autostart*:::
Start instance after creating it.
*-C, \--chdir* 'dir':::
Set 'dir' as run directory for instance. (default: current directory)
*-P, \--port* 'port':::
Control endpoint specification (e.g. telnet port) for instance.
(default: unix:'rundir'/procserv-'name'/control where 'rundir'
is defined by the system, e.g. "/run" or "/run/user/UID")
*-U, \--user* 'username':::
User name for instance to run as.
*-G, \--group* 'groupname':::
Group name for instance to run as.
*name*:::
Instance name.
*command...*:::
The remaining line is interpreted as the command (with arguments) to run
inside the procServ instance.
*manage-procs remove* [-h] [-f] 'name'::
Remove an existing procServ instance from the configuration.
*-h, \--help*:::
Show a help message and exit.
*-f, \--force*:::
Remove without asking for confirmation.
*name*:::
Instance name.
*manage-procs start* [-h] ['pattern']::
Start procServ instances.
*-h, \--help*:::
Show a help message and exit.
*pattern*:::
Pattern to match existing instance names against.
(default: "*" = start all procServ instances)
*manage-procs stop* [-h] ['pattern']::
Stop procServ instances.
*-h, \--help*:::
Show a help message and exit.
*pattern*:::
Pattern to match existing instance names against.
(default: "*" = stop all procServ instances)
*manage-procs attach* [-h] 'name'::
Attach to the control port of a running procServ instance.
+
For this, manage-procs is using one of two existing CLI client applications
to connect: 'telnet' to connect to TCP ports and 'socat' to connect to
UNIX domain sockets.
+
For both connection types, press `^D` to detach from the session.
*-h, \--help*:::
Show a help message and exit.
*name*:::
Instance name.
*manage-procs list* [-h] [--all]::
List all procServ instances.
*-h, \--help*:::
Show a help message and exit.
*\--all*:::
Also list inactive instances.
*manage-procs status* [-h]::
Report the status of all procServ instances.
*-h, \--help*:::
Show a help message and exit.
SEE ALSO
--------
*procServ*(1)
KNOWN PROBLEMS
--------------
None so far.
REPORTING BUGS
--------------
Please report bugs using the issue tracker at
<https://github.com/ralphlange/procServ/issues>.
AUTHORS
-------
Written by Michael Davidsaver <[email protected]>.
Contributing author: Ralph Lange <[email protected]>.
RESOURCES
---------
GitHub project: <https://github.com/ralphlange/procServ>
COPYING
-------
All rights reserved.
Free use of this software is granted under the terms of the GNU General
Public License (GPLv3).