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?

Thanks

asked 11 Apr '11, 21:19

THEM's gravatar image

THEM
717
accept rate: 0%


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

link

answered 11 Apr '11, 21:32

johns's gravatar image

johns ♦♦
4.1k28
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

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

Tags:

×157
×92
×62
×10
×2

Asked: 11 Apr '11, 21:19

Seen: 2,170 times

Last updated: 11 Apr '11, 21:32

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited