summarylogtreecommitdiffstats
path: root/mihomo@.service
diff options
context:
space:
mode:
Diffstat (limited to 'mihomo@.service')
-rw-r--r--mihomo@.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/mihomo@.service b/mihomo@.service
new file mode 100644
index 000000000000..b67fc9abf0e0
--- /dev/null
+++ b/mihomo@.service
@@ -0,0 +1,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
+AmbientCapabilities=cap_net_admin
+Restart=on-abort
+ExecStart=/usr/bin/mihomo
+
+[Install]
+WantedBy=multi-user.target