veilid/package/systemd/veilid-server.service

45 lines
947 B
SYSTEMD
Raw Permalink Normal View History

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
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
UMask=0002
2022-05-16 11:52:48 -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]
WantedBy=multi-user.target