View Single Post
Old 7th January 2013
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,507
Default

If nginx was not a core package and was installed via ports or pkg_add you would have an /etc/rc.conf.local that looked like this
Code:
ntpd_flags="-s"         # enabled during install
xdm_flags=              # enabled during install
lpd_flags=""            # Start print daemon
apmd_flags="-C"         # AMD CPU power management
pkg_scripts="nginx mpd"
In the above, start up options would be in /etc/nginx.conf. Since flags are now part of third party daemons you could also try nginx_flags="-u" but this does give you nested "" and a good chance of scripting error.


Now that nginx is a core package your /etc/rc.conf.local becomes
Code:
ntpd_flags="-s"        # enabled during install
xdm_flags=             # enabled during install
lpd_flags=""            # Start print daemon
apmd_flags="-C"      # AMD CPU power management
nginx_flags=""         # Start nginx web server
pkg_scripts="mpd"
If you want to disable chroot for nginx it becomes
Code:
ntpd_flags="-s"        # enabled during install
xdm_flags=             # enabled during install
lpd_flags=""            # Start print daemon
apmd_flags="-C"      # AMD CPU power management
nginx_flags="-u"         # Start nginx web server chroot disabled
pkg_scripts="mpd"

Last edited by shep; 7th January 2013 at 05:27 PM. Reason: 1st edit forgot to close last [CODE] tag 2nd edit clarity
Reply With Quote