serviceman
https://webinstall.dev/serviceman/
# 使用配置文件注册 easytier 服务
sudo serviceman add -name easytier -system \
--workdir /var/log/easytier \
-groupname wheel -username root \
-cap-net-bind \
-- easytier-core -c ~/.config/easytier.toml
# 不使用配置文件注册 easytier 服务
sudo serviceman add -name easytier -system \
--workdir /var/log/easytier \
-groupname wheel -username root \
-cap-net-bind \
-- easytier-core --ipv4 x.x.x.x --network-name xxx --network-secret yyy --peers tcp://peer_host:11010
sudo serviceman start easytier
sudo serviceman stop easytier
serviceman list --system
serviceman list --user
serviceman add -name frp --system --dryrun -cap-net-bind -- /Users/arick/go/bin/frpc -c /Users/arick/go/etc/frp/frpc.toml
serviceman add -name frp --system -cap-net-bind -- /Users/arick/go/bin/frpc -c /Users/arick/go/etc/frp/frpc.toml
sudo serviceman add -name mihomo --system -cap-net-bind -- /Users/arick/go/bin/mihomo -f /Users/arick/Library/Mobile\ Documents/iCloud~com~nssurge~kernel/Documents/mini.yaml
sudo serviceman add -name tier --system -cap-net-bind -- /Users/arick/go/bin/easytier-core -c /Users/arick/.config/easytier/local.yaml