```bash
bash -lc '
set -e
mkdir -p "$PREFIX/var/service/frpc/log"
ln -sf "$PREFIX/share/termux-services/svlogger" \
  "$PREFIX/var/service/frpc/log/run"

cat > "$PREFIX/var/service/frpc/run" <<'"'"'EOF'"'"'
#!/data/data/com.termux/files/usr/bin/sh
exec 2>&1
cd "$HOME/frpc"
exec frpc -c "$HOME/frpc/frpc.toml"
EOF

chmod +x "$PREFIX/var/service/frpc/run" \
         "$PREFIX/var/service/frpc/log/run"

echo "✅ frpc service 已创建"
echo "👉 启动：sv up frpc"
echo "👉 状态：sv status frpc"
echo "👉 日志：tail -n 200 $PREFIX/var/log/sv/frpc/current"
'
```