savez
4/21/2017 - 1:52 PM

Script for control webmin running for DEBIAN

Script for control webmin running for DEBIAN

#!/bin/bash
 
if /etc/init.d/webmin status | grep "stopped" >/dev/null
then
    echo "Webmin is stopped. Restarting..."
    /etc/init.d/webmin start
else
    echo "Webmin is running."
fi

#into cronbjob: */30 * * * * <path>/checkwebmin.chk >/dev/null 2>&1