Controlling Nginx from command line

Just learnt of this, that Nginx can be controlled from command line, or more specifically by sending signals to the process, for example:kill -USR1 `cat /path/to/nginx.pid`
causes Nginx to reopen log files, suitable for a log rotation job.