-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-proxy/mihomo: add [email protected]
Signed-off-by: jinqiang zhang <[email protected]>
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
} |