$ nohup bitcoind &$ exit
#!/bin/bashif ! pgrep bitcoind > /dev/nullthen <do something to restart the bitcoind>fi
-daemon Run in the background as a daemon and accept commands