How to activate Watchdog automatically on Debian/Ubuntu?

Created:

2017-02-09 15:39:58 UTC

Modified:

2017-08-16 17:30:09 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to activate Watchdog automatically on Debian/Ubuntu?

Applicable to:

  • Plesk Onyx for Linux

Question

In Onyx EZ-template for automatic plesk installation, what flag can be used for activating Watchdog at boot without clicking the button "activate" after first Plesk initialization?

Answer

/etc/rc.local script can be configured to run only at first boot of the server after successful installation:

# echo "if ! ps axww | grep -q monit ; then /usr/local/psa/admin/bin/modules/watchdog/wd --start fi
rm -f /etc/rc.local" > /etc/rc.local

Have more questions? Submit a request
Please sign in to leave a comment.