blob: 42a8c84b96267b63591663a74985ae49ab35f7bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
|