【问题标题】:Why is c-lightning working when launched manually, but fails to start via systemd?为什么手动启动 c-lightning 可以工作,但无法通过 systemd 启动?
【发布时间】:2019-05-18 22:14:51
【问题描述】:

我正在尝试让修剪过的 c-lightning 在 Raspberry Pi 零 W 上启动时启动。它在手动启动时工作(这很棒!)但不能通过 systemd。我已经尝试了许多关于 Lightning.service 文件的变体,但都没有奏效。当我检查状态时它说“不活动(死)”,如果我做“sudo systemctl start Lightning”,它就会挂起并且状态保持“不活动(死)”。

这是最简单的 Lightning.service 文件,它应该可以工作(但不能):

[Unit]
Description=lightning-deamon
After=bitcoin.service
Requires=bitcoin.service

[Service]
ExecStart=/usr/local/bin/lightningd
User=doge
Group=doge
Type=simple
Restart=on-failure
RestartSec=30
TimeoutStartSec=300

[Install]
WantedBy=multi-user.target

有人让这个工作吗?你能发布你的闪电服务文件吗?关于为什么这可能会失败的任何其他想法?

【问题讨论】:

    标签: raspberry-pi systemd raspberry-pi-zero lightning-network


    【解决方案1】:

    我得到了它的工作:bitcoind 是作为“分叉”而不是“简单”启动的,所以它永远不会返回,所以闪电也永远不会被调用。

    【讨论】:

      猜你喜欢
      • 2013-01-16
      • 2020-11-02
      • 2017-12-17
      • 2021-06-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-11
      • 1970-01-01
      相关资源
      最近更新 更多