Startup and shutdown scripts for the miner