[Unit] Description=Xray-core Service Documentation=https://github.com/xtls/xray-core After=network.target network-online.target nftables.service Wants=network-online.target [Service] Type=simple User=root WorkingDirectory=/opt/xray-core ExecStart=/opt/xray-core/xray -confdir /opt/xray-core/config Restart=on-failure RestartSec=3s LimitNOFILE=65535 [Install] WantedBy=multi-user.target