The rc.d file runs bitcoin-cli in function check_bitcoind_ready() but it needs the full path. This is on a freshly built 13.0 system, with stock bitcoin installed. Also, a feature request: use "daemon" to autorestart lightningd if/when it dies. The rc.d for bitcoind is already doing this, and lightningd is much less mature. Thanks!
Makes sense
In 1ec29872bf758e541e7932b6c449d1a88b59b594 net-p2p/c-lightning was upgraded to 0.10.2. I added the full path to bitcoin-cli (thus marking this PR as "fixed"). However I did not change it to use daemon(8) to restart lightningd if it dies. I think any unexpected crashes should be thoroughly investigated and reported to the developers. Silently restarting after a crash is like "yeah, it is ok if this crashes 2 times per day, we just restart it". One should be extra careful with this software crashing because it could mean that it has a security issue; it is communicating with remote untrusted peers and is handling money. net-p2p/bitcoin's rc script uses daemon(8) but it does not use the auto-restart feature (-r).