digitalocean restart droplet code example Example 1: ubuntu restart mysql sudo service mysql restart Example 2: restart service linux crontab # service crond start