📄 wrapper.txt
字号:
From: Valts Mazurs <valts@datatechlabs.com>Organization: Data Tech LabsTo: openh323gk-users@lists.sourceforge.netSubject: [Openh323gk-users] gnugk wrapperHello, Gnugk users!I made a wrapper for gnugk for our ("Data Tech Labs") purposes but Iwould like to share it with other gnugk users.This wrapper is written in Perl and requires Net::Telnet perl moduleinstalled.Wrapper's main function is to execute gnugk and check if it is alive. Nooffence, but gnugk often hangs up, terminates or freezes during seriousload.Wrapper forks into 2 processes.The first one executes gnugk and waits until it exits. Then it executesgnugk again and so on and so on.The second process checks gnugk status port in different ways (refuse,access forbidden, timeout) and kills appropiate gnugk process if neccessary.Wrapper accepts all the gnugk cmd line options (execept "--pid" which isused in wrapper) and passes them to gnugk.It is possible to run wrapper in different ways: foreground, daemon,with or without additional debugging output.Wrapper uses logfile where it logs most important events (gnugkkilling/restarting).To kill the wrapper properly along with it's gnugk instance you mustkill first the wrapper and only after then - gnugk.Example:kill `cat /usr/local/var/run/gnugk_wrapper_127.0.0.1.pid` && kill `cat/usr/local/var/run/gnugk_127.0.0.1.pid`It is possible to run multiple gnugk instances which are tied todifferent IP addresses (aliases) on one server. Gnugkg wrapper extractsIP address information from gnugk config file (uses "Home" parameter inMain section)Wrapper is developed and tested on FreeBSD. It runs successfully on allour gatekeepers. It think that it will work on other *NIXes and Linux too.Take a look at attached gnugk_wrapper.pl and see the comments inside.Feel free to send me any feedback. I will wait for your critics andsuggestions. I would be really happy if gnugk developers found thiswrapper useful enough to include it in CVS.Best regards,Valts Mazurs
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -