From 0ad765923d6f41636c0d5e9662d8d728fd4e3368 Mon Sep 17 00:00:00 2001 From: RPRX <63339210+rprx@users.noreply.github.com> Date: Wed, 25 Nov 2020 07:26:03 +0000 Subject: [PATCH] Add run --- install-release.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-release.sh b/install-release.sh index cb1b400..741be35 100644 --- a/install-release.sh +++ b/install-release.sh @@ -367,7 +367,7 @@ install_startup_service_file() { # Or all changes you made will be lost! # Refer: https://www.freedesktop.org/software/systemd/man/systemd.unit.html [Service] ExecStart= -ExecStart=/usr/local/bin/xray -confdir $JSONS_PATH" | +ExecStart=/usr/local/bin/xray run -confdir $JSONS_PATH" | tee '/etc/systemd/system/xray.service.d/10-donot_touch_multi_conf.conf' > \ '/etc/systemd/system/xray@.service.d/10-donot_touch_multi_conf.conf' else @@ -377,13 +377,13 @@ ExecStart=/usr/local/bin/xray -confdir $JSONS_PATH" | # Or all changes you made will be lost! # Refer: https://www.freedesktop.org/software/systemd/man/systemd.unit.html [Service] ExecStart= -ExecStart=/usr/local/bin/xray -config ${JSON_PATH}/config.json" > \ +ExecStart=/usr/local/bin/xray run -config ${JSON_PATH}/config.json" > \ '/etc/systemd/system/xray.service.d/10-donot_touch_single_conf.conf' echo "# In case you have a good reason to do so, duplicate this file in the same directory and make your customizes there. # Or all changes you made will be lost! # Refer: https://www.freedesktop.org/software/systemd/man/systemd.unit.html [Service] ExecStart= -ExecStart=/usr/local/bin/xray -config ${JSON_PATH}/%i.json" > \ +ExecStart=/usr/local/bin/xray run -config ${JSON_PATH}/%i.json" > \ '/etc/systemd/system/xray@.service.d/10-donot_touch_single_conf.conf' fi echo "info: Systemd service files have been installed successfully!"