mirror of
https://github.com/wnlen/clash-for-linux.git
synced 2026-02-04 10:11:28 +08:00
Add systemd installer and non-root support
This commit is contained in:
@ -9,8 +9,10 @@ ExecStart=/bin/bash /opt/clash-for-linux/start.sh
|
||||
ExecStop=/bin/bash /opt/clash-for-linux/shutdown.sh
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
User=root
|
||||
User=clash
|
||||
Group=clash
|
||||
PIDFile=/opt/clash-for-linux/temp/clash.pid
|
||||
Environment=CLASH_ENV_FILE=/opt/clash-for-linux/temp/clash-for-linux.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user