#!/bin/sh set -e state=/var/lib/xray-lists if [ -e "$state/.reload-nft" ]; then nft -c -f /etc/nftables.conf nft -f /etc/nftables.conf rm -f "$state/.reload-nft" fi if [ -e "$state/.reload-dnsmasq" ]; then dnsmasq --test systemctl restart dnsmasq rm -f "$state/.reload-dnsmasq" fi