summarylogtreecommitdiffstats
path: root/mihomo@.service
blob: fbeb6aa870c221ab71b3f487b4e919ced4543913 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Mihomo Kernel by MetaCubeX.
After=network.target NetworkManager.service systemd-networkd.service iwd.service

[Service]
Type=exec
User=%i
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=on-abort
ExecStart=+/usr/bin/mihomo

[Install]
WantedBy=multi-user.target