vocat.service 944 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [Unit]
  2. Description=vocat cellular and VoWiFi control service
  3. After=network-online.target
  4. Wants=network-online.target
  5. [Service]
  6. Type=simple
  7. User=root
  8. Group=root
  9. WorkingDirectory=/opt/vocat
  10. ExecStart=/opt/vocat/bin/vocat
  11. Restart=on-failure
  12. RestartSec=3s
  13. TimeoutStartSec=30s
  14. TimeoutStopSec=20s
  15. Environment=VOCAT_ADDR=0.0.0.0:7575
  16. Environment=VOCAT_DATABASE_PATH=/opt/vocat/data/vocat.db
  17. EnvironmentFile=/etc/vocat/vocat.env
  18. AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW
  19. CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW
  20. NoNewPrivileges=true
  21. PrivateTmp=true
  22. PrivateDevices=false
  23. ProtectSystem=strict
  24. ProtectHome=true
  25. ProtectKernelLogs=true
  26. ProtectKernelModules=true
  27. ProtectKernelTunables=true
  28. ProtectControlGroups=true
  29. ReadWritePaths=/opt/vocat/data
  30. RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
  31. RestrictRealtime=true
  32. LockPersonality=true
  33. MemoryDenyWriteExecute=true
  34. UMask=0077
  35. LimitNOFILE=65536
  36. [Install]
  37. WantedBy=multi-user.target