From 3772ad8ddb9c13727f45eda9a1546c14d449c4ed Mon Sep 17 00:00:00 2001 From: Dabrit Date: Fri, 4 Mar 2022 22:22:49 +0800 Subject: [PATCH 1/2] Revise mismatching targets from README. --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 1a616237b..75db9392a 100644 --- a/README.md +++ b/README.md @@ -223,21 +223,21 @@ tproxy-port: 9898 tun: enable: false ``` -Create user given name `Clash.Meta`. +Create user given name `Clash-Meta`. -Run Meta Kernel by user `Clash.Meta` as a daemon. +Run Meta Kernel by user `Clash-Meta` as a daemon. -Create the systemd configuration file at /etc/systemd/system/clash.service: +Create the systemd configuration file at /etc/systemd/system/Clash-Meta.service: ``` [Unit] -Description=Clash.Meta Daemon, Another Clash Kernel. +Description=Clash-Meta Daemon, Another Clash Kernel. After=network.target [Service] Type=simple -User=Clash.Meta -Group=Clash.Meta +User=Clash-Meta +Group=Clash-Meta CapabilityBoundingSet=cap_net_admin AmbientCapabilities=cap_net_admin Restart=always @@ -248,12 +248,12 @@ WantedBy=multi-user.target ``` Launch clashd on system startup with: ```shell -$ systemctl enable Clash.Meta +$ systemctl enable Clash-Meta ``` Launch clashd immediately with: ```shell -$ systemctl start Clash.Meta +$ systemctl start Clash-Meta ``` ### Display Process name From a7f3b852004d083bfec55efcb2f387bd9c6d4fc5 Mon Sep 17 00:00:00 2001 From: Dabrit Date: Fri, 4 Mar 2022 22:36:15 +0800 Subject: [PATCH 2/2] Edit username to adapt Linux username naming rule --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 75db9392a..979680082 100644 --- a/README.md +++ b/README.md @@ -223,9 +223,9 @@ tproxy-port: 9898 tun: enable: false ``` -Create user given name `Clash-Meta`. +Create user given name `meta`. -Run Meta Kernel by user `Clash-Meta` as a daemon. +Run Meta Kernel by user `meta` as a daemon. Create the systemd configuration file at /etc/systemd/system/Clash-Meta.service: @@ -236,8 +236,8 @@ After=network.target [Service] Type=simple -User=Clash-Meta -Group=Clash-Meta +User=meta +Group=meta CapabilityBoundingSet=cap_net_admin AmbientCapabilities=cap_net_admin Restart=always