systemd 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. [Unit]
  2. Description=Yet Another Monitoring Tool for the Babel routing daemon
  3. Documentation=https://github.com/Vivena/babelweb2
  4. [Service]
  5. LimitNOFILE=1048576
  6. LimitNPROC=512
  7. DynamicUser=true
  8. CapabilityBoundingSet=
  9. RestrictAddressFamilies=AF_INET AF_INET6
  10. RestrictNamespaces=yes
  11. RestrictNetworkInterfaces=lo
  12. PrivateDevices=yes
  13. PrivateNetwork=no
  14. PrivateUsers=yes
  15. ProtectClock=yes
  16. ProtectControlGroups=yes
  17. ProtectHome=yes
  18. ProtectKernelLogs=yes
  19. ProtectKernelModules=yes
  20. ProtectKernelTunables=yes
  21. ProtectProc=invisible
  22. ProtectHostname=yes
  23. SystemCallArchitectures=native
  24. SystemCallFilter=~@clock
  25. SystemCallFilter=~@debug
  26. SystemCallFilter=~@module
  27. SystemCallFilter=~@mount
  28. SystemCallFilter=~@raw-io
  29. SystemCallFilter=~@reboot
  30. SystemCallFilter=~@swap
  31. SystemCallFilter=~@privileged
  32. SystemCallFilter=~@resources
  33. SystemCallFilter=~@cpu-emulation
  34. SystemCallFilter=~@obsolete
  35. RestrictRealtime=yes
  36. LockPersonality=yes
  37. MemoryDenyWriteExecute=yes
  38. ProcSubset=pid
  39. EnvironmentFile=/etc/default/babelweb2
  40. ExecStart=/usr/local/bin/babelweb2 -http $PORT -static $STATIC_DIR
  41. ExecReload=/bin/kill -SIGUSR1 $MAINPID
  42. Restart=on-failure
  43. [Install]
  44. WantedBy=multi-user.target