bitcoind won’t start if datadir is specified in the conf file and the user running it has no home dir
tested with debian stretch and bitcoin 0.17.1
0# sudo -u bitcoin bitcoind -daemon -conf=/usr/local/etc/bitcoin/bitcoin.conf -pid=/run/bitcoind/bitcoind.pid
1
2************************
3EXCEPTION: N5boost10filesystem16filesystem_errorE
4boost::filesystem::create_directories: Permission denied: "/home/bitcoin"
5bitcoin in AppInit()
6
7bitcoind: chainparamsbase.cpp:29: const CBaseChainParams& BaseParams(): Assertion `globalChainBaseParams' failed.
8Aborted
9
10# mkhomedir_helper bitcoin
11
12# sudo -u bitcoin bitcoind -daemon -conf=/usr/local/etc/bitcoin/bitcoin.conf -pid=/run/bitcoind/bitcoind.pid
13Bitcoin server starting