mirror of
https://github.com/juewuy/ShellCrash.git
synced 2024-11-16 19:55:57 +08:00
15 lines
233 B
SYSTEMD
15 lines
233 B
SYSTEMD
|
[Unit]
|
||
|
Description=clash
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
User=root
|
||
|
ExecStart=/etc/clash/clash -d /etc/clash
|
||
|
ExecStartPost=/etc/clash/start.sh afstart
|
||
|
Restart=on-failure
|
||
|
RestartSec=3s
|
||
|
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|