View Single Post
  #1   (View Single Post)  
Old 7th January 2013
ershiba ershiba is offline
Loading, please wait...
 
Join Date: Dec 2012
Posts: 34
Default Nginx - autostart & gracefully shutdown

hi friends,
right now, my nginx need to manually start using
Code:
$ sudo nginx
under my user oem account

what is the best practice or suggestion for starting it automatically and able to gracefully shutdown if it detect a power shutdown event (eg, when user press the [POWER] button on their PC)

is it by adding pkg_scripts="nginx" using /etc/rc.conf.local ?
Reply With Quote