Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I have a requirement to design a state manager which has to take care of starting and stopping of process whenever there is state change at the device level. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2007
    Posts
    2

    Runlevels


    Hi,

    I have a requirement to design a state manager which has to take care of starting and stopping of process whenever there is state change at the device level.

    1. Would using run-levels be appropriate solution so that we define for each runlevel what process has to run ?
    2. Can we create user defined run-levels ?

    (or)

    1. Just have a state manager which will broadcast the messages whenever there is a state change.

    Thanks,
    Pavan.

  2. #2
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    So you want to start/stop a process when the device state changes? Create a daemon that listens to the device state to change, then once it does, it can execute whatever you want it to. If I am understanding your question correctly, runlevels don't have much to do with this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •