# Should a core start with a different command vs a relay?

**URL:** <https://forum.cardano.org/t/should-a-core-start-with-a-different-command-vs-a-relay/55828>\
**Category:** Setup a Stake Pool\
**Created:** [1 April 2021 03:24 UTC](https://forum.cardano.org/t/should-a-core-start-with-a-different-command-vs-a-relay/55828 "2021-04-01T03:24:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![christobear12](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/christobear12/32/31172_2.png) [@christobear12](https://forum.cardano.org/u/christobear12)\
**Post date:** [1 April 2021 03:24 UTC](https://forum.cardano.org/t/should-a-core-start-with-a-different-command-vs-a-relay/55828/1 "2021-04-01T03:24:30Z")

</div>

I’ve been using the coincashew guide: [Guide: How to Set Up a Cardano Stake Pool - CoinCashew](https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node#7-create-startup-scripts)

When writing the start up scrips for the relay and cores I expected them to be different.  
The guide says that the relay and a core with the following:

> #!/bin/bash  
> DIRECTORY=$NODE\_HOME  
> PORT=xxxx  
> HOSTADDR=0.0.0.0  
> TOPOLOGY=${DIRECTORY}/${NODE\_CONFIG}-topology.json  
> DB\_PATH=${DIRECTORY}/db  
> SOCKET\_PATH=${DIRECTORY}/db/socket  
> CONFIG=${DIRECTORY}/${NODE\_CONFIG}-config.json  
> /usr/local/bin/cardano-node run --topology ${TOPOLOGY} --database-path ${DB\_PATH} --socket-path ${SOCKET\_PATH} --host-addr ${HOSTADDR} --port ${PORT} --config ${CONFIG}  
> EOF

I guess I was expecting the core to have to start differently. (Including the KES, and pool.cert,…). I came across the below somewhere in the forum. I quoted the main difference below.

> DIRECTORY=$NODE\_HOME  
> PORT=XXXX  
> HOSTADDR=0.0.0.0  
> TOPOLOGY=${DIRECTORY}/{NODE\_CONFIG}-topology.json DB\_PATH=${DIRECTORY}/db SOCKET\_PATH=${DIRECTORY}/db/socket CONFIG=${DIRECTORY}/{NODE\_CONFIG}-config.json  
> KES=${DIRECTORY}/kes.skey  
> VRF=${DIRECTORY}/vrf.skey  
> CERT=${DIRECTORY}/node.cert  
> cardano-node run --topology ${TOPOLOGY} --database-path ${DB\_PATH} --socket-path ${SOCKET\_PATH} --host-addr ${HOSTADDR} --port ${PORT} --config ${CONFIG}

> –shelley-kes-key ${KES} --shelley-vrf-key ${VRF} --shelley-operational-certificate ${CERT}

> EOF

Is this a possible error in the coincashew guide? Should I be using a cardano-node run command similar to the one that uses the cert and keys?

---

<div class="post-metadata">

**Author:** ![comozo](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/comozo/32/38963_2.png) [@comozo](https://forum.cardano.org/u/comozo)\
**Post date:** [1 April 2021 07:22 UTC](https://forum.cardano.org/t/should-a-core-start-with-a-different-command-vs-a-relay/55828/2 "2021-04-01T07:22:00Z")

</div>

Hi @christobear12

It can be confusing. I believe the command is correct because you’ll configure the block producer at this section [Guide: How to build a Cardano Stake Pool - CoinCashew](https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node#9-generate-block-producer-keys). You are almost there. Good luck.

Please find the extract below

```
cat > $NODE_HOME/startBlockProducingNode.sh << EOF 
DIRECTORY=$NODE_HOME
PORT=6000
HOSTADDR=0.0.0.0
TOPOLOGY=\${DIRECTORY}/${NODE_CONFIG}-topology.json
DB_PATH=\${DIRECTORY}/db
SOCKET_PATH=\${DIRECTORY}/db/socket
CONFIG=\${DIRECTORY}/${NODE_CONFIG}-config.json
KES=\${DIRECTORY}/kes.skey
VRF=\${DIRECTORY}/vrf.skey
CERT=\${DIRECTORY}/node.cert
cardano-node run --topology \${TOPOLOGY} --database-path \${DB_PATH} --socket-path \${SOCKET_PATH} --host-addr \${HOSTADDR} --port \${PORT} --config \${CONFIG} --shelley-kes-key \${KES} --shelley-vrf-key \${VRF} --shelley-operational-certificate \${CERT}
EOF
```

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [1 April 2021 09:39 UTC](https://forum.cardano.org/t/should-a-core-start-with-a-different-command-vs-a-relay/55828/3 "2021-04-01T09:39:34Z")

</div>

Hi!

yes - that seems an error… will you create an issue in github?

---

<div class="post-metadata">

**Author:** ![christobear12](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/christobear12/32/31172_2.png) [@christobear12](https://forum.cardano.org/u/christobear12)\
**Post date:** [1 April 2021 10:09 UTC](https://forum.cardano.org/t/should-a-core-start-with-a-different-command-vs-a-relay/55828/4 "2021-04-01T10:09:36Z")

</div>

Yes. I just created an issue on the github.

Thanks for confirming.

edit: (issue closed). Updated answer

---

<div class="post-metadata">

**Author:** ![christobear12](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/christobear12/32/31172_2.png) [@christobear12](https://forum.cardano.org/u/christobear12)\
**Post date:** [1 April 2021 13:51 UTC](https://forum.cardano.org/t/should-a-core-start-with-a-different-command-vs-a-relay/55828/5 "2021-04-01T13:51:49Z")

</div>

Thanks for your help.  
my startup script looks like that one but I couldn’t find the section where we updated it.
