2024-02-25 20:42:01 +08:00
|
|
|
[Unit]
|
|
|
|
Description=mihomo Daemon, Another Clash Kernel.
|
|
|
|
After=network.target NetworkManager.service systemd-networkd.service iwd.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
LimitNPROC=500
|
|
|
|
LimitNOFILE=1000000
|
2024-04-17 17:55:13 +08:00
|
|
|
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
|
2024-02-25 20:42:01 +08:00
|
|
|
Restart=always
|
|
|
|
ExecStartPre=/usr/bin/sleep 2s
|
2024-02-27 02:14:18 +08:00
|
|
|
ExecStart=/usr/bin/mihomo -d /etc/mihomo
|
2024-02-25 20:42:01 +08:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|