I'm trying to setup a log rotation cron job. In an older configuration, I had the following lines to restart the mongrel process:

postrotate killall -u <username> mongrel_rails

What's the equivalent command to restart my nginx process?


asked 11 Apr '11, 21:19

THEM's gravatar image

accept rate: 0%

Enter cd ~/webapps/rails_app where rails_app is the name of your Rails application. Enter ./bin/restart and press Enter.

permanent link

answered 11 Apr '11, 21:32

johns's gravatar image

johns ♦♦
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 11 Apr '11, 21:19

question was seen: 2,854 times

last updated: 11 Apr '11, 21:32

Features & prices    Sign up    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
© Copyright 2003-2015 Swarma Limited - WebFaction is a service of Swarma Limited