summarylogtreecommitdiffstats
path: root/clash-core-service@.service
blob: 3974317d3b418182ab7284ded03b7c06648bec5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[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/bin/install -Dm755 -o %i -g %i \
    /opt/clash-for-windows/static/files/linux/x64/service/clash-core-service \
    -t /home/%i/.config/clash/service
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