-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathclash.service
31 lines (29 loc) · 910 Bytes
/
clash.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
############################################################################
# Install:
# curl -LO https://github.com/yaling888/quirktiva/raw/plus/examples/daemon/linux/clash.service
# cp clash.service /etc/systemd/system/
# systemctl enable clash.service
# systemctl start clash
# systemctl status clash -l --no-pager
# ps aux | grep clash
# journalctl -ex
#
# Uninstall:
# systemctl stop clash.service
# systemctl disable clash.service
# rm /etc/systemd/system/clash.service
#
# executable file: /usr/local/bin/clash
# configuration folder: /etc/clash/
############################################################################
[Unit]
Description=Clash Daemon
After=syslog.target network-online.target remote-fs.target nss-lookup.target
Wants=network-online.target
[Service]
Type=simple
Restart=always
LimitNOFILE=524288
ExecStart=/usr/local/bin/clash -d /etc/clash/
[Install]
WantedBy=multi-user.target