summarylogtreecommitdiffstats
path: root/clash-core-service@.service
blob: ee274634454e828c992018d4877011aff7755376 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Clash core service created by Clash for Windows for normal user.
After=network-online.target nftables.service iptabels.service

[Service]
Type=simple
ExecStartPre=/usr/bin/install -Dm644 -o %i -g %i /etc/clash/Country.mmdb  -t /home/%i/.config/clash
ExecStartPre=+/usr/share/clash/setup-cgroup.sh
ExecStart=/usr/share/clash/bypass-proxy /home/%i/.config/clash/service/clash-core-service
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target