View Single Post
Old 7th January 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

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.
Reply With Quote