x-ui.service 436 B

12345678910111213141516171819202122
  1. [Unit]
  2. Description=x-ui Service
  3. After=network.target
  4. Wants=network.target
  5. [Service]
  6. Environment="XRAY_VMESS_AEAD_FORCED=false"
  7. Type=simple
  8. WorkingDirectory=/usr/local/x-ui/
  9. ExecStart=/usr/local/x-ui/x-ui
  10. Restart=on-failure
  11. RestartSec=5s
  12. ProtectHome=tmpfs
  13. ProtectKernelModules=true
  14. ProtectControlGroups=true
  15. ProtectKernelLogs=true
  16. ProtectHostname=true
  17. ProtectClock=true
  18. MemoryDenyWriteExecute=true
  19. [Install]
  20. WantedBy=multi-user.target