Server::~Server()
{
- murder();
+ kill();
}
bool Server::check()
while (--limit and
is_pid_valid(_app.pid()))
{
- if (murder())
+ if (kill())
{
Log << "Killed existing server," << *this;
dream(0, 50000);
return wait.successful();
}
+bool Server::init(const char *argv[])
+{
+ if (argv)
+ {
+ for (const char **ptr= argv; *ptr ; ++ptr)
+ {
+ if (ptr)
+ {
+ add_option(*ptr);
+ }
+ }
+ }
+
+ return build();
+}
+
bool Server::has_pid() const
{
return (_app.pid() > 1);
return true;
}
-bool Server::murder()
+bool Server::kill()
{
if (check_pid(_app.pid())) // If we kill it, reset
{