veilid/package/systemd/veilid-server.service

45 lines
947 B
SYSTEMD
Raw Normal View History

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