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

    Join Date
    Jun 2010
    Rep Power

    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.

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

    Join Date
    Jun 2005
    Rep Power
    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