Quote:
Originally Posted by jggimi
Think about daemons procedurally:
- 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.
- Is this a third party package I installed? If so:
- Add the /etc/rc.d script name to the pkg_scripts variable.
- Does it need any special flags? If so, create a _flags variable.
- Does it need to be started as a special user, other than defined in the script? If so, create a _user variable.
- 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?