mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-12-22 23:57:26 +08:00
17 lines
620 B
Desktop File
17 lines
620 B
Desktop File
[Unit]
|
|
Description=mihomo Daemon, Another Clash Kernel.
|
|
After=network.target NetworkManager.service systemd-networkd.service iwd.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
LimitNPROC=500
|
|
LimitNOFILE=1000000
|
|
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SYS_TIME CAP_SYS_PTRACE CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE
|
|
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SYS_TIME CAP_SYS_PTRACE CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE
|
|
Restart=always
|
|
ExecStartPre=/usr/bin/sleep 2s
|
|
ExecStart=/usr/bin/mihomo -d /etc/mihomo
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |