2022-05-16 11:52:48 -04:00
|
|
|
# /etc/systemd/system/veilid-server.service
|
|
|
|
|
|
|
|
[Unit]
|
2023-06-16 19:58:06 -04:00
|
|
|
Description=Veilid Headless Node
|
2022-05-16 11:52:48 -04:00
|
|
|
Requires=network-online.target
|
|
|
|
After=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
2022-05-28 10:07:57 -04:00
|
|
|
Type=simple
|
2023-06-16 19:58:06 -04:00
|
|
|
Environment=RUST_BACKTRACE=1
|
2023-09-13 16:27:42 -04:00
|
|
|
ExecStart=/usr/bin/veilid-server -c /etc/veilid-server/veilid-server.conf
|
2022-05-16 11:52:48 -04:00
|
|
|
ExecReload=/bin/kill -s HUP $MAINPID
|
|
|
|
KillSignal=SIGQUIT
|
|
|
|
TimeoutStopSec=5
|
2022-05-28 10:07:57 -04:00
|
|
|
WorkingDirectory=/
|
|
|
|
User=veilid
|
|
|
|
Group=veilid
|
2022-05-16 11:52:48 -04:00
|
|
|
|
2023-09-13 16:27:42 -04: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 11:52:48 -04:00
|
|
|
[Install]
|
2023-09-13 16:27:42 -04:00
|
|
|
WantedBy=multi-user.target
|