Skip to content

Commit

Permalink
chore: Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xishang0128 committed Feb 25, 2024
1 parent 8d9eb1e commit 78b4b11
Show file tree
Hide file tree
Showing 3 changed files with 272 additions and 281 deletions.
17 changes: 17 additions & 0 deletions .github/mihomo.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[Unit]
Description=mihomo Daemon, Another Clash Kernel.
After=network.target NetworkManager.service systemd-networkd.service iwd.service

[Service]
Type=simple
LimitNPROC=500
LimitNOFILE=1000000
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SYS_TIME CAP_SYS_PTRACE CAP_DAC_READ_SEARCH
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SYS_TIME CAP_SYS_PTRACE CAP_DAC_READ_SEARCH
Restart=always
ExecStartPre=/usr/bin/sleep 2s
ExecStart=/usr/local/bin/mihomo -d /etc/mihomo
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target

0 comments on commit 78b4b11

Please sign in to comment.