WebFaction
Community site: login faq

I edited my crontab file today and found this line in it which is presumably part of the default Webfaction installation: 0,20,40 * * ~/webapps/django/apache2/bin/start

Whenever it runs, it gives this message which seems to indicate an error: httpd (pid 26066) already running

Should that not be? 0,20,40 * * ~/webapps/django/apache2/bin/restart

Also, is there any disadvantage if I change the apache restart cronjob to run every hour, say, instead of every 20 minutes? It's for my Django site.

asked 07 Feb '11, 13:26

nathangeffen
112
accept rate: 0%

edited 07 Feb '11, 13:30


If you use start, it will only start the application if it isn't running. If you use restart, it stops your application every time it runs, then starts it. There is no benefit to stopping your application every 20 minutes, or every hour.

The benefit of running it every 20 minutes means that if your application does go down, it won't be down for longer than 20 minutes. If you set it to start every hour, if there is a problem, it could take up to an hour to restart.

permanent link

answered 07 Feb '11, 14:26

aaronh ♦♦
1.3k3
accept rate: 34%

Thanks. Makes sense.

permanent link

answered 07 Feb '11, 14:30

nathangeffen
112
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×225
×81

question asked: 07 Feb '11, 13:26

question was seen: 4,234 times

last updated: 07 Feb '11, 14:30

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM