#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2010
    Posts
    2
    Rep Power
    0

    Plugin management


    I'm writing dynamic loading of classes which is for a plug-in architecture, but a bit confused on how they are generally used. The main executable is a daemon I plan on running in the background, but somehow during runtime, the user needs to be able to command it to load a certain library, or unload it. How exactly is this done? Is there some sort of command line way where a user just types "$ mydaemon load this_module"? Just looking for the most common practices of doing module management for a current process during runtime.

    Thanks,
  2. #2
  3. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,377
    Rep Power
    1871
    http://www.freebsd.org/doc/en/books/...s-daemons.html
    Send it a signal, and have it re-read a config file.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper

IMN logo majestic logo threadwatch logo seochat tools logo