Adds the five missing worker units plus a grouping target so `systemctl start decnet.target` brings the whole fleet up in order. Sniffer gets CAP_NET_RAW for scapy; collector and mutator join the docker supplementary group for docker.sock access. Repoints Documentation= across all existing units to the canonical git.resacachile.cl wiki.
41 lines
1.1 KiB
Desktop File
41 lines
1.1 KiB
Desktop File
[Unit]
|
|
Description=DECNET Swarm Controller (master)
|
|
Documentation=https://git.resacachile.cl/anti/DECNET/wiki/SWARM-Mode
|
|
After=network-online.target decnet-api.service
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=decnet
|
|
Group=decnet
|
|
WorkingDirectory=/opt/decnet
|
|
EnvironmentFile=-/opt/decnet/.env.local
|
|
# Default bind is loopback — the controller is a master-local orchestrator
|
|
# reached by the CLI and the web dashboard, not by workers.
|
|
ExecStart=/opt/decnet/venv/bin/decnet swarmctl --host 127.0.0.1 --port 8770
|
|
|
|
# No special capabilities — the controller issues mTLS certs and talks to
|
|
# workers over TCP on unprivileged ports.
|
|
CapabilityBoundingSet=
|
|
AmbientCapabilities=
|
|
|
|
# Security Hardening
|
|
NoNewPrivileges=yes
|
|
ProtectSystem=full
|
|
ProtectHome=read-only
|
|
PrivateTmp=yes
|
|
ProtectKernelTunables=yes
|
|
ProtectKernelModules=yes
|
|
ProtectControlGroups=yes
|
|
RestrictSUIDSGID=yes
|
|
LockPersonality=yes
|
|
# Reads/writes the CA bundle and the master DB.
|
|
ReadWritePaths=/opt/decnet /var/log/decnet
|
|
ReadOnlyPaths=/etc/decnet
|
|
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|