• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

Help with Installing Monit on Dashcore

I am following the instructions to install Monit on Dashcore. I get stuck at the 2nd step where I modify the code to create "start_dashd.sh" to the below as my Dashcore folder is in root.

#!/bin/bash
/bin/su root -c './.dashcore/dashd 2>&1 >> ./.dashcore/rc.local.log'

When I run this I get the below error:
Cannot obtain a lock on data directory /root/.dashcore. Dash Core is probably already running.

Any suggestions?
 
I am following the instructions to install Monit on Dashcore. I get stuck at the 2nd step where I modify the code to create "start_dashd.sh" to the below as my Dashcore folder is in root.

#!/bin/bash
/bin/su root -c './.dashcore/dashd 2>&1 >> ./.dashcore/rc.local.log'

When I run this I get the below error:
Cannot obtain a lock on data directory /root/.dashcore. Dash Core is probably already running.

Any suggestions?


you're trying to run a script that is only supposed to be run by monit when dashd isn't running.

But, you want to change the line to:

Code:
/bin/su root -c '/root/.dashcore/dashd 2>&1 >> /root/.dashcore/rc.local.log'

and, you really shouldn't be running dashd as root in the first place.. bad security practice.
 
Back
Top