aboutsummaryrefslogtreecommitdiff
path: root/scripts/toggle-xray.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/toggle-xray.sh')
-rwxr-xr-xscripts/toggle-xray.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/toggle-xray.sh b/scripts/toggle-xray.sh
new file mode 100755
index 0000000..a95ffd3
--- /dev/null
+++ b/scripts/toggle-xray.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+if systemctl is-active --quiet xray; then
+ systemctl stop xray
+else
+ systemctl start xray
+fi