dashameter
New member
The web is full of opinions that when OOM killer eats your process it might have eaten other system processes as well and it's best to reboot the machine entirely. I see scripts being discussed here that simply call `./dashd` to restart the process. What is the consensus on whether that alone is good enough or if the machine should be restarted?
If the machine needs a restart should the watchdog script be run via the root cron or the user added to the reboot process via visudo:
While having
in your crontab ?
Adapting the script from the other thread:
I prefer calling dash-cli rather than using ps, I might have other scripts with a dashd in their name running, if dashd isn't running, dash-cli will throw an error.
If the machine needs a restart should the watchdog script be run via the root cron or the user added to the reboot process via visudo:
Code:
user ALL=NOPASSWD: /sbin/reboot
While having
Code:
@reboot "/home/user/.dashcore/dashd"
Adapting the script from the other thread:
Code:
#!/bin/bash
DASHD_RUNNING=$( /home/user/.dashcore/dash-cli help | wc -l )
if [ $DASHD_RUNNING -eq 0 ] ; then
reboot
fi
I prefer calling dash-cli rather than using ps, I might have other scripts with a dashd in their name running, if dashd isn't running, dash-cli will throw an error.
Last edited: