#!/bin/bash if systemctl is-active --quiet xray; then systemctl stop xray else systemctl start xray fi