MANAGE-PROCS(1)

Revision History
Revision 2.8.006/28/2019

Table of Contents

1. NAME
2. SYNOPSIS
3. DESCRIPTION
4. GENERAL OPTIONS
5. COMMANDS
6. SEE ALSO
7. KNOWN PROBLEMS
8. REPORTING BUGS
9. AUTHORS
10. RESOURCES
11. COPYING

1. NAME

manage-procs - manage procServ instances as systemd new-style daemons

2. SYNOPSIS

manage-procs [-h|--help] [--user] [--system] [-v] command [args]

3. 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.

4. 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)

5. 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.

6. SEE ALSO

procServ(1)

7. KNOWN PROBLEMS

None so far.

8. REPORTING BUGS

Please report bugs using the issue tracker at https://github.com/ralphlange/procServ/issues.

9. AUTHORS

Written by Michael Davidsaver <mdavidsaver@ospreydcs.com>. Contributing author: Ralph Lange <ralph.lange@gmx.de>.

10. RESOURCES

GitHub project: https://github.com/ralphlange/procServ

11. COPYING

All rights reserved. Free use of this software is granted under the terms of the GNU General Public License (GPLv3).