summaryrefslogtreecommitdiffstats
path: root/receptor.conf.example
blob: 80198e41c6186985eda3b27c1876614432ce8bee (plain)
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
#
# receptor.conf
#
# This is a YAML-formatted file in which each block represents a Receptor
# configuration directive.  For a list of possible directives, see
# "receptor --help".  Below is a basic example of a single node.


# To create and launch a new systemd-managed Receptor node:
#
# 1. Copy this file to /etc/receptor/receptor.conf
# 2. chmod 0600 if the new file will contain any passwords or sensitive data
# 3. Edit the new config file as needed
# 4. systemctl enable receptor --now


# Basic properties of the node.  The node ID must be unique.
- node:
    id: receptor

# The control service allows receptorctl to talk to the running service,
# and is also used for functions like remote work submission.
- control-service:
    service: control
    filename: /var/run/receptor.sock

# A listener allows other Receptor nodes to connect to this one.
- tcp-listener:
    port: 2345

# A work-command defines a type of worker that jobs can be submitted to.
- work-command:
    worktype: hello
    command: /bin/echo
    params: "Hello, world!"