Skip to content

Commit

Permalink
net-proxy/mihomo: add [email protected]
Browse files Browse the repository at this point in the history
Signed-off-by: jinqiang zhang <[email protected]>
  • Loading branch information
peeweep committed Nov 28, 2024
1 parent baca515 commit d89d93a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions net-proxy/mihomo/files/mihomo_at.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Unit]
Description=mihomo Daemon for %i.
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
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE
Restart=on-abort
ExecStart=/usr/bin/mihomo

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@ src_install() {
dobin bin/mihomo
dosym -r "/usr/bin/mihomo" "/usr/bin/clash-meta"
systemd_dounit "${FILESDIR}/mihomo.service"
systemd_newunit "${FILESDIR}/mihomo_at.service" [email protected]
newinitd "${FILESDIR}"/mihomo.initd mihomo
}

0 comments on commit d89d93a

Please sign in to comment.