mirror of
https://github.com/wnlen/clash-for-linux.git
synced 2026-02-04 10:11:28 +08:00
19 lines
428 B
Desktop File
19 lines
428 B
Desktop File
[Unit]
|
|
Description=Clash for Linux
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=/opt/clash-for-linux
|
|
ExecStart=/bin/bash /opt/clash-for-linux/start.sh
|
|
ExecStop=/bin/bash /opt/clash-for-linux/shutdown.sh
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
User=clash
|
|
Group=clash
|
|
PIDFile=/opt/clash-for-linux/temp/clash.pid
|
|
Environment=CLASH_ENV_FILE=/opt/clash-for-linux/temp/clash-for-linux.sh
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|