Hey guys. So I am trying to configure xrdp to be monitored by some program to make sure if it goes down, something will bring it back up. I am currently using god's monitoring service to monitor my other services, and would like to have xrdp be monitored by god as well. However, when I set up a watch like this:
God.watch do |w| w.name = "xrdp" w.interval = 5.seconds w.start = "/etc/init.d/xrdp start" w.stop = "/etc/init.d/xrdp stop" w.restart = "/etc/init.d/xrdp restart" #w.pid_file = "/var/run/xrdp/xrdp.pid" #w.behavior(:clean_pid_file) w.pids = ["/var/run/xrdp/xrdp.pid", "/var/run/xrdp/sesman.pid"] w.behavior(:clean_pids) w.start_if do |start| start.condition(:process_running) do |c| c.running = false end end end it runs xrdp 10-12 times over and over again. I am not sure if this is a pure god problem or an xrdp problem. Has anyone had this sort of problem? Thanks ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ xrdp-devel mailing list xrdp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xrdp-devel