2022-05-16 10:52:48 -05:00
|
|
|
# /etc/systemd/system/veilid-server.service
|
|
|
|
|
|
|
|
[Unit]
|
2023-06-16 18:58:06 -05:00
|
|
|
Description=Veilid Headless Node
|
2022-05-16 10:52:48 -05:00
|
|
|
Requires=network-online.target
|
|
|
|
After=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
2022-05-28 09:07:57 -05:00
|
|
|
Type=simple
|
2023-06-16 18:58:06 -05:00
|
|
|
Environment=RUST_BACKTRACE=1
|
2023-09-13 15:27:42 -05:00
|
|
|
ExecStart=/usr/bin/veilid-server -c /etc/veilid-server/veilid-server.conf
|
2022-05-16 10:52:48 -05:00
|
|
|
ExecReload=/bin/kill -s HUP $MAINPID
|
|
|
|
KillSignal=SIGQUIT
|
|
|
|
TimeoutStopSec=5
|
2022-05-28 09:07:57 -05:00
|
|
|
WorkingDirectory=/
|
|
|
|
User=veilid
|
|
|
|
Group=veilid
|
2024-08-06 16:58:27 -05:00
|
|
|
UMask=0002
|
2022-05-16 10:52:48 -05:00
|
|
|
|
2023-09-13 15:27:42 -05:00
|
|
|
CapabilityBoundingSet=
|
|
|
|
SystemCallFilter=@system-service
|
|
|
|
MemoryDenyWriteExecute=true
|
|
|
|
NoNewPrivileges=true
|
|
|
|
PrivateDevices=true
|
|
|
|
PrivateTmp=true
|
|
|
|
PrivateUsers=true
|
|
|
|
ProtectHome=true
|
|
|
|
ProtectClock=true
|
|
|
|
ProtectControlGroups=true
|
|
|
|
ProtectKernelLogs=true
|
|
|
|
ProtectKernelModules=true
|
|
|
|
ProtectKernelTunables=true
|
|
|
|
ProtectProc=invisible
|
|
|
|
ProtectSystem=strict
|
|
|
|
ReadWritePaths=/var/db/veilid-server
|
|
|
|
ConfigurationDirectory=veilid-server
|
|
|
|
|
|
|
|
RestrictRealtime=true
|
|
|
|
SystemCallArchitectures=native
|
|
|
|
LockPersonality=true
|
|
|
|
RestrictSUIDSGID=true
|
|
|
|
|
2022-05-16 10:52:48 -05:00
|
|
|
[Install]
|
2023-09-13 15:27:42 -05:00
|
|
|
WantedBy=multi-user.target
|