- 驱动/名称/次默认路由/非默认口 评分探测 - install.sh 无参数:探测→写配置→装内核→启动→验证 - cpxy rebind 重插卡后重新绑定 - 自动生成 PANEL_SECRET;可选 apt 装依赖
25 lines
672 B
Desktop File
25 lines
672 B
Desktop File
[Unit]
|
|
Description=cellular-proxy (sing-box dual-WAN split, Chinese UI)
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
EnvironmentFile=-@INSTALL_DIR@/etc/runtime.env
|
|
ExecStartPre=/bin/mkdir -p /var/lib/cellular-proxy @LOG_DIR@
|
|
ExecStart=@INSTALL_DIR@/bin/sing-box run -c @INSTALL_DIR@/etc/config.json
|
|
Restart=on-failure
|
|
RestartSec=3
|
|
LimitNOFILE=65535
|
|
# 低内存设备软上限(install 时替换;0 则删除本行)
|
|
MemoryMax=@MEMORY_MAX@
|
|
NoNewPrivileges=true
|
|
ProtectSystem=full
|
|
ProtectHome=true
|
|
PrivateTmp=true
|
|
StandardOutput=append:@LOG_DIR@/stdout.log
|
|
StandardError=append:@LOG_DIR@/stderr.log
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|