Page 1 of 1

How can i restart apache Every hours with cron job

Posted: Sat Feb 03, 2018 3:34 am
by Mehliz
Hello How can i restart apache Every hours with cron job

what is the command for it

http://prntscr.com/i9fv7c

i search forum and find some command but it doesnt work with me
example : export VESTA=/usr/local/vesta/;sudo /usr/local/vesta/bin/v-restart-service apache2

it doesnt restart apache

Re: How can i restart apache Every hours with cron job

Posted: Sat Feb 10, 2018 4:12 am
by noogen
First, I don't think it is a good idea to restart it every hour instead of trying to figure out what wrong with your app. But if you insists:

This is the command to restart: https://github.com/serghey-rodin/vesta/ ... estart-web

You would execute: sudo /usr/local/vesta/bin/v-restart-web