You need to enable JavaScript to run this app. 树莓派Linux下SIP客户端Twinkle后台运行终止及开机自启问题
优惠活动
大模型
产品
解决方案
定价
更多

树莓派Linux下SIP客户端Twinkle后台运行终止及开机自启问题

树莓派环境下Twinkle SIP客户端后台启动异常问题

基础正常运行状态

刚接触Linux,在树莓派上使用SIP客户端Twinkle,直接在Shell中通过twinkle -c启动时程序可完全正常运行。
前台运行的输出内容如下:

Firewall/NAT discovery in progress.
Please wait.

Twinkle 1.10.1, October 7, 2016
Copyright (C) 2005-2015  Michel de Boer and contributors

Users:
* twinkle
    Schranken <sip:676@###>

Local IP:       255.255.255.255


twinkle: registering phone...

Twinkle>
twinkle: registration succeeded (expires = 360000000 seconds)

后台启动的异常表现

尝试通过nohup twinkle -c </dev/null > /home/pi/log 2>&1 &命令将程序放到后台运行时,任务会立即终止。
对应的日志文件记录如下:

Firewall/NAT discovery in progress.
Please wait.

Twinkle 1.10.1, October 7, 2016
Copyright (C) 2005-2015  Michel de Boer and contributors

Users:
* twinkle
    Schranken <sip:676@###>

Local IP:       255.255.255.255


twinkle: registering phone...

Twinkle>

Info: Deregistering phone...

前期配置尝试

项目最终目标为实现Twinkle开机后自动运行,此前曾通过rc.local、systemd、init.d、crontab等方式配置自启动,均无法让程序正常工作。提交问题时已尽可能提供全部相关运行细节,寻求解决方案。

最终解决方式

通过screen工具解决了该问题,在rc.local文件中添加启动screen会话并运行Twinkle的对应命令后,程序可正常稳定运行。


内容的提问来源于stack exchange,提问作者Erik

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.11.20 18:06:02