summarylogtreecommitdiffstats
path: root/clash-meta.service
diff options
context:
space:
mode:
Diffstat (limited to 'clash-meta.service')
-rw-r--r--clash-meta.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/clash-meta.service b/clash-meta.service
new file mode 100644
index 000000000000..5e7b826a9f04
--- /dev/null
+++ b/clash-meta.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=Clash-Meta Daemon, Another Clash Kernel.
+After=network.target NetworkManager.service systemd-networkd.service iwd.service
+
+[Service]
+Type=simple
+User=clash-meta
+Group=clash-meta
+LimitNPROC=500
+LimitNOFILE=1000000
+CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE
+AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE
+Restart=always
+RestartSec=5
+ExecStart=/usr/bin/clash-meta -d /etc/clash-meta
+
+[Install]
+WantedBy=multi-user.target