Mmx233 / BitSrunLoginGo

深澜校园网登录程序 Go 语言版,适用于Windows、Linux、路由器等。提供对 Docker、Go Module、OpenWrt 的支持
GNU Affero General Public License v3.0
303 stars 27 forks source link

请问启动参数中的-daemon和-running-daemon有什么区别? #9

Closed AltCtrlFn closed 2 years ago

AltCtrlFn commented 2 years ago

此外设置daemon为true,在/etc/rc.local中设置自启动SrunLogin后并没有在进程列表中找到该进程,不清楚原因

Mmx233 commented 2 years ago

--daemon 是在开机启动的时候用的,若为守护模式,强制启用后台模式,以防开机流程堵塞在这

Mmx233 commented 2 years ago

只有在守护模式下才会长时间驻留的,不然只认证一次

AltCtrlFn commented 2 years ago

原来如此,谢谢

Mmx233 commented 2 years ago

啊,整反了不好意思,-daemon是开机启动的时候用的,-running-daemon是表示已经在daemon中,即为强制不daemon。