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 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279
|
'\" t
.\" Title: manage-procs
.\" Author: [see the "AUTHORS" section]
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\" Date: 06/28/2019
.\" Manual: manage-procs Manual
.\" Source: manage-procs 2.8.0
.\" Language: English
.\"
.TH "MANAGE\-PROCS" "1" "06/28/2019" "manage\-procs 2\&.8\&.0" "manage\-procs Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
manage-procs \- manage procServ instances as systemd new\-style daemons
.SH "SYNOPSIS"
.sp
\fBmanage\-procs\fR [\-h|\-\-help] [\-\-user] [\-\-system] [\-v] \fIcommand\fR [\fIargs\fR]
.SH "DESCRIPTION"
.sp
manage\-procs(1) is a helper script for creating/maintaining procServ(1) instances managed as systemd(1) new\-style daemons\&.
.sp
Both user and system mode of systemd are supported\&. Specifying the \fB\-\-user\fR options will consider the user unit configuration, while the \fB\-\-system\fR option will consider the system unit configuration\&.
.sp
Configuration files defining procServ instances will reside in
.sp
.if n \{\
.RS 4
.\}
.nf
/etc/procServ\&.conf
/etc/procServ\&.d/*\&.conf
.fi
.if n \{\
.RE
.\}
.sp
for global systemd units or
.sp
.if n \{\
.RS 4
.\}
.nf
~/\&.config/procServ\&.conf
~/\&.config/procServ\&.d/*\&.conf
.fi
.if n \{\
.RE
.\}
.sp
for user systemd units\&. These configuration files contain blocks like
.sp
.if n \{\
.RS 4
.\}
.nf
[instancename]
command = /bin/bash
## optional
#chdir = /
#user = nobody
#group = nogroup
#port=0 # default to dynamic assignment
.fi
.if n \{\
.RE
.\}
.sp
The procServUtils package installs systemd generators that will generate unit files from these configuration blocks\&.
.SH "GENERAL OPTIONS"
.PP
\fB\-h, \-\-help\fR
.RS 4
Show a help message and exit\&.
.RE
.PP
\fB\-\-user\fR
.RS 4
Consider user configuration\&.
.RE
.PP
\fB\-\-system\fR
.RS 4
Consider system configuration\&. (default)
.RE
.PP
\fB\-v, \-\-verbose\fR
.RS 4
Increase verbosity level\&. (may be specified multiple times)
.RE
.SH "COMMANDS"
.PP
\fBmanage\-procs add\fR [\-h] [\-f] [\-A] [\-C \fIdir\fR] [\-P \fIport\fR] [\-U \fIuser\fR] [\-G \fIgroup\fR] \fIname\fR \fIcommand\fR\&...
.RS 4
Create a new procServ instance\&.
.PP
\fB\-h, \-\-help\fR
.RS 4
Show a help message and exit\&.
.RE
.PP
\fB\-f, \-\-force\fR
.RS 4
Overwrite an existing instance of the same name\&.
.RE
.PP
\fB\-A, \-\-autostart\fR
.RS 4
Start instance after creating it\&.
.RE
.PP
\fB\-C, \-\-chdir\fR \fIdir\fR
.RS 4
Set
\fIdir\fR
as run directory for instance\&. (default: current directory)
.RE
.PP
\fB\-P, \-\-port\fR \fIport\fR
.RS 4
Control endpoint specification (e\&.g\&. telnet port) for instance\&. (default: unix:\*(Aqrundir\*(Aq/procserv\-\fIname\fR/control where
\fIrundir\fR
is defined by the system, e\&.g\&. "/run" or "/run/user/UID")
.RE
.PP
\fB\-U, \-\-user\fR \fIusername\fR
.RS 4
User name for instance to run as\&.
.RE
.PP
\fB\-G, \-\-group\fR \fIgroupname\fR
.RS 4
Group name for instance to run as\&.
.RE
.PP
\fBname\fR
.RS 4
Instance name\&.
.RE
.PP
\fBcommand\&...\fR
.RS 4
The remaining line is interpreted as the command (with arguments) to run inside the procServ instance\&.
.RE
.RE
.PP
\fBmanage\-procs remove\fR [\-h] [\-f] \fIname\fR
.RS 4
Remove an existing procServ instance from the configuration\&.
.PP
\fB\-h, \-\-help\fR
.RS 4
Show a help message and exit\&.
.RE
.PP
\fB\-f, \-\-force\fR
.RS 4
Remove without asking for confirmation\&.
.RE
.PP
\fBname\fR
.RS 4
Instance name\&.
.RE
.RE
.PP
\fBmanage\-procs start\fR [\-h] [\fIpattern\fR]
.RS 4
Start procServ instances\&.
.PP
\fB\-h, \-\-help\fR
.RS 4
Show a help message and exit\&.
.RE
.PP
\fBpattern\fR
.RS 4
Pattern to match existing instance names against\&. (default: "*" = start all procServ instances)
.RE
.RE
.PP
\fBmanage\-procs stop\fR [\-h] [\fIpattern\fR]
.RS 4
Stop procServ instances\&.
.PP
\fB\-h, \-\-help\fR
.RS 4
Show a help message and exit\&.
.RE
.PP
\fBpattern\fR
.RS 4
Pattern to match existing instance names against\&. (default: "*" = stop all procServ instances)
.RE
.RE
.PP
\fBmanage\-procs attach\fR [\-h] \fIname\fR
.RS 4
Attach to the control port of a running procServ instance\&.
.sp
For this, manage\-procs is using one of two existing CLI client applications to connect:
\fItelnet\fR
to connect to TCP ports and
\fIsocat\fR
to connect to UNIX domain sockets\&.
.sp
For both connection types, press
^D
to detach from the session\&.
.PP
\fB\-h, \-\-help\fR
.RS 4
Show a help message and exit\&.
.RE
.PP
\fBname\fR
.RS 4
Instance name\&.
.RE
.RE
.PP
\fBmanage\-procs list\fR [\-h] [\-\-all]
.RS 4
List all procServ instances\&.
.PP
\fB\-h, \-\-help\fR
.RS 4
Show a help message and exit\&.
.RE
.PP
\fB\-\-all\fR
.RS 4
Also list inactive instances\&.
.RE
.RE
.PP
\fBmanage\-procs status\fR [\-h]
.RS 4
Report the status of all procServ instances\&.
.PP
\fB\-h, \-\-help\fR
.RS 4
Show a help message and exit\&.
.RE
.RE
.SH "SEE ALSO"
.sp
\fBprocServ\fR(1)
.SH "KNOWN PROBLEMS"
.sp
None so far\&.
.SH "REPORTING BUGS"
.sp
Please report bugs using the issue tracker at https://github\&.com/ralphlange/procServ/issues\&.
.SH "AUTHORS"
.sp
Written by Michael Davidsaver <mdavidsaver@ospreydcs\&.com>\&. Contributing author: Ralph Lange <ralph\&.lange@gmx\&.de>\&.
.SH "RESOURCES"
.sp
GitHub project: https://github\&.com/ralphlange/procServ
.SH "COPYING"
.sp
All rights reserved\&. Free use of this software is granted under the terms of the GNU General Public License (GPLv3)\&.
|