On 20/09/06, danny zhong <[EMAIL PROTECTED]> wrote:
> so what i need to do is just put all the starting and
> stoping script in the /etc/init.h/

Write a script that will start/stop the daemons appropriately - yes.
It doesn't actually matter where you put this script.

I'm suggesting that you use the /etc/init.d scripts as a model, since
this provides a good template for the way this can be done.  Plus if
you write it in this form, you can then use the same script to start
the daemons automatically, if you decide you want to work that way.
(I'm a lazy beggar at times, and it's often easier to Do It Right first time)

>                                   and then use the procfix with setting the
> prErrFix to 1, in order to call the starting or stoping script?

Correct.

>        just for making sure, will the "procfix" only do "trigger", or it
> will wait for the "triggered process" finished.

It will run the start/stop script, and then return.
Whether it waits for the triggered process to finish, depends on how
you write this script (and the daemon processes themselves).   If
you're developing the daemons cleanly, they should detach themselves
from the controlling terminal, and fork off a child to actually do the
work, allowing the initial process to exit.   Or you could have the
start/stop script invoke the daemon(s) as a subprocess, running in the
background, so the script can exit and leave the daemons running.

But this is getting away from SNMP-specific stuff.  It's really just
general network service programming issues.


Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to