View Single Post
Old 7th January 2013
ershiba ershiba is offline
Loading, please wait...
 
Join Date: Dec 2012
Posts: 34
Default

Quote:
Originally Posted by jggimi View Post
Think about daemons procedurally:
  1. Is this a built-in daemon? If so, set the _flags variable to something other than NO to enable the daemon at boot time. Stop here.
  2. Is this a third party package I installed? If so:
    1. Add the /etc/rc.d script name to the pkg_scripts variable.
    2. Does it need any special flags? If so, create a _flags variable.
    3. Does it need to be started as a special user, other than defined in the script? If so, create a _user variable.
  3. If this is a self-installed application, not included in the ports/packages system, either I create my own rc.d script as described in FAQ 10.3, or I create startup scripting in /etc/rc.local.
ok, glad you post this, it certainly helps me to understand,
so, built in daemon (those that not via pkg_add) autostart = daemonname_flags=""
(stop)

daemon that get into via pkg_add, autostart = use pkg_scripts
(stop) unless we got *_flags != "", otherwise we don't need to *_flags="" since it is unnecessary.

so, base on the above idea,
Code:
mysqld_flags=""
psgsql_flags=""
php_fpm_flags=""
nginx_flags=""
are not correct, am i right?

Code:
mysqld_flags="--bind-address=127.0.0.1"
nginx_flags="-u"
are correct,

i hope i got this idea right this time. am i?
Reply With Quote