ShellCrash/scripts/clash.service

17 lines
264 B
SYSTEMD
Raw Normal View History

2020-09-18 21:07:13 +08:00
[Unit]
Description=clash
After=network.target
[Service]
Type=simple
User=root
ExecStart=/etc/clash/clash -d /etc/clash >/dev/null
2020-09-18 21:07:13 +08:00
ExecStartPost=/etc/clash/start.sh afstart
Restart=on-failure
RestartSec=3s
LimitNOFILE=999999
2020-09-18 21:07:13 +08:00
[Install]
WantedBy=multi-user.target