summarylogtreecommitdiffstats
path: root/mihomo.service
diff options
context:
space:
mode:
Diffstat (limited to 'mihomo.service')
-rw-r--r--mihomo.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/mihomo.service b/mihomo.service
new file mode 100644
index 000000000000..4f85302376c0
--- /dev/null
+++ b/mihomo.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Mihomo Kernel by MetaCubeX.
+After=network.target NetworkManager.service systemd-networkd.service iwd.service
+
+[Service]
+Type=exec
+CapabilityBoundingSet=cap_net_admin
+AmbientCapabilities=cap_net_admin
+Restart=on-abort
+ExecStart=/usr/bin/mihomo -d /etc/mihomo
+
+[Install]
+WantedBy=multi-user.target