user101497: Every time I restart my bitcoind, all the wallets will need to be reloaded:
$ bitcoin-cli listwallets
[
  ""
]
$ bitcoin-cli loadwallet test01
$ bitcoin-cli listwallets
[
  "",
  "test01"
]

So I was wondering that is there any ways to auto load all the wallet under path /home/ubuntu/.bitcoin/testnet3/wallets when startup? I have tried adding some config in bitcoin.config, but all didn't work for me:
wallet=/home/ubuntu/.bitcoin/testnet3/wallets
wallet=/home/ubuntu/.bitcoin/testnet3/wallets/test01
wallet=1

bitcoin core version: v0.18.1

user101498: You can specify the wallet options multiple times.
I.e. specifying:
wallet=/home/ubuntu/.bitcoin/testnet3/wallets/wallet01
wallet=/home/ubuntu/.bitcoin/testnet3/wallets/wallet02
wallet=/home/ubuntu/.bitcoin/testnet3/wallets/wallet03

in your bitcoin.conf will load wallet01, wallet02, wallet03.

user112020: If you're using a systemd service, here's a way to auto load wallets using ExecStartPost.
This is what I added to my bitcoind.service file:
ExecStartPost=/bin/bash -c "sleep 60 && ls PATH_TO_YOUR_WALLETS_FOLDER -I database -I wallet.dat -I db.log | xargs -r -L 1 PATH_TO_YOUR_BITCON_CLI/bitcoin-cli loadwallet"

It waits 60 seconds after bitcoind starts, to give it a chance to load the block index first.
Then looks for wallet directories and loads each one using bitcoin-cli loadwallet WALLET_NAME command.

Alternatively, if you just want to load specific wallets on Bitcoin Core restart, add this to bitcoin.conf before restarting:
wallet=
wallet=wallet_name
wallet=another_wallet

Full path isn't required if you created the wallets in the default directory (aka datadir).
A wallet name is the name of the directory the corresponding wallet.dat is in.
The wallet= line is needed to also load the default wallet.
Make sure to add the lines in the [test] section if you're on testnet.

101497: <p>Every time I restart my <code>bitcoind</code>, all the wallets will need to be reloaded:</p>

<pre><code>$ bitcoin-cli listwallets
[
  ""
]
$ bitcoin-cli loadwallet test01
$ bitcoin-cli listwallets
[
  "",
  "test01"
]
</code></pre>

<p>So I was wondering that is there any ways to auto load all the wallet under path <code>/home/ubuntu/.bitcoin/testnet3/wallets</code> when startup? I have tried adding some config in bitcoin.config, but all didn't work for me:</p>

<pre><code>wallet=/home/ubuntu/.bitcoin/testnet3/wallets
wallet=/home/ubuntu/.bitcoin/testnet3/wallets/test01
wallet=1
</code></pre>

<p>bitcoin core version: v0.18.1</p>
 101498: <p>You can specify the wallet options multiple times.</p>

<p>I.e. specifying:</p>

<pre><code>wallet=/home/ubuntu/.bitcoin/testnet3/wallets/wallet01
wallet=/home/ubuntu/.bitcoin/testnet3/wallets/wallet02
wallet=/home/ubuntu/.bitcoin/testnet3/wallets/wallet03
</code></pre>

<p>in your bitcoin.conf will load <code>wallet01</code>, <code>wallet02</code>, <code>wallet03</code>.</p>
 112020: <p>If you're using a systemd service, here's a way to auto load wallets using ExecStartPost.<br />
This is what I added to my bitcoind.service file:</p>
<pre><code>ExecStartPost=/bin/bash -c &quot;sleep 60 &amp;&amp; ls PATH_TO_YOUR_WALLETS_FOLDER -I database -I wallet.dat -I db.log | xargs -r -L 1 PATH_TO_YOUR_BITCON_CLI/bitcoin-cli loadwallet&quot;
</code></pre>
<p>It waits 60 seconds after bitcoind starts, to give it a chance to load the block index first.
Then looks for wallet directories and loads each one using <code>bitcoin-cli loadwallet WALLET_NAME</code> command.</p>
<hr />
<p>Alternatively, if you just want to load specific wallets on Bitcoin Core restart, add this to <strong>bitcoin.conf</strong> before restarting:</p>
<pre><code>wallet=
wallet=wallet_name
wallet=another_wallet
</code></pre>
<p>Full path isn't required if you created the wallets in the default directory (aka <strong>datadir</strong>).<br />
A wallet name is the name of the directory the corresponding wallet.dat is in.<br />
The <code>wallet=</code> line is needed to also load the default wallet.<br />
Make sure to add the lines in the <strong>[test]</strong> section if you're on testnet.</p>
