Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

How can i restart apache Every hours with cron job Topic is solved

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
Mehliz
Posts: 2
Joined: Thu Oct 26, 2017 10:14 pm

How can i restart apache Every hours with cron job
  • Quote

Post by Mehliz » Sat Feb 03, 2018 3:34 am

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
Top

noogen
Posts: 66
Joined: Thu Jan 05, 2017 9:20 pm

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

Post by noogen » Sat Feb 10, 2018 4:12 am

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
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password