Post
Topic
Board Announcements (Altcoins)
Re: [ANN][DASH] Dash | First Anonymous Coin | Inventor of X11, DGW, Darksend and InstantX
by
fuzzyduck
on 07/09/2015, 19:02:24 UTC
Since some people are saying v.53 is crashing sometimes, i made the 'mn_watch.sh' masternode restarting-script already here on this topic a bit more versatile. Instead of just restarting dashd it now spits out the time it crashed as well as the last 30 lines of debug.log to a file before restarting dashd.

Its kind of redoing whats already been done, but now it nice 'n compact without sifting trough the 10mb debug.log  Wink

1. The script is in my homedir where i keep all the stuff so its written as such. You may need to alter some paths if you keep your stuff elsewhere.
2. The script appends to the file crash.log, if not exist it is created.
3. the command 'date' spits out UTC time. Its possible to alter this to your own timezone. Do a google on it.

Im a noobish linux user so the script may appear wonky, but hey, it works, right?  Roll Eyes
Dont ask hard questions cuz i may not be able to answer them Smiley




#!/bin/bash

if [ -z `pidof dashd` ]; then


echo "Crashed!" >> crash.log
date >> crash.log
echo -e "\n" >> crash.log
tail -n 30 ./.dash/debug.log >> crash.log
echo -e "\n" >> crash.log
echo  "********************************************" >> crash.log
echo -e "\n" >> crash.log
echo -e "\n" >> crash.log

./dashd

fi