secubox-deb/daemon/systemd/secuboxd.service
CyberMind-FR 26a826f4a5 Fix systemd services for VM deployment
- secuboxd.service: Change Type from notify to simple, run as root
- c3box.service: Remove config file requirement, use command-line flags
- Add secuboxd-prod.yaml with production paths
- Add daemon/build/ to gitignore

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-25 08:09:20 +01:00

46 lines
1.0 KiB
Desktop File

# SecuBox Mesh Daemon
# CyberMind — SecuBox-Deb — 2026
[Unit]
Description=SecuBox Mesh Daemon
Documentation=https://secubox.in/docs/secuboxd
After=network-online.target
Wants=network-online.target
Before=crowdsec.service
[Service]
Type=simple
ExecStart=/usr/bin/secuboxd --config /etc/secubox/secuboxd.yaml
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartSec=5
# Security hardening (CSPN compliant)
User=root
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
PrivateDevices=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectControlGroups=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
RestrictNamespaces=yes
LockPersonality=yes
MemoryDenyWriteExecute=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
# Runtime directories
RuntimeDirectory=secuboxd
StateDirectory=secuboxd
LogsDirectory=secuboxd
# Socket permissions
RuntimeDirectoryMode=0750
[Install]
WantedBy=multi-user.target