The UnrealIRCd team does not officially provide support for any services packages that you may be using or want to use. This forum is provided so the community can help each other with services issues.
I just thought I should share this, I made it yesterday. I run IRCServices, and have a cron running which is meant to attempt to start it every 3 minutes. If IRCServies is already running the script ends, if not it starts the services. This works very well from a cron, to keep the services from attempting to restart and filling up the log file.
Using ps to detect whether a program is running is a bad idea. First, each OS has a different output. Some might not even support all of those flags. But also, maybe, for example, someone has two copies of IRC Services running. Or perhaps they have set the "title" of the program to something else. The best way to do it is to read the pid from the pid file and to send it a signal CHLD and see what happens.
codemastr wrote:The best way to do it is to read the pid from the pid file and to send it a signal CHLD and see what happens.
Yea I had tried that first, but somehow the pid file was being overwritten by the cron, and caused the ircservices to attempt to restart, whcih would fail, but caused the log file to log a startup every 3 minutes with the cron. Which effectively made the logfile very big. It was probably something in my scripting, but the ps aux script worked fine for now.