Current time: 11-26-2024, 07:55 PM Hello There, Guest! (LoginRegister)


Post Reply 
Apache - Reload instead of Restart
Author Message
Ballistic509 Offline
Junior Member
*

Posts: 24
Joined: May 2007
Reputation: 0
Post: #4
RE: Apache - Reload instead of Restart
So just to double check this, If I made the following change would this be correct? lol

Original
Code:
sub restart_httpd {

    my ($cmd, $rs, $rdata) = (undef, undef, undef);

    push_el(\@main::el, 'restart_httpd()', 'Starting...');

    $cmd = $main::cfg{'CMD_HTTPD'};

    sys_command_rs("$cmd stop");

    sleep(5);

    sys_command_rs("$cmd start");

    sleep(5);

    push_el(\@main::el, 'restart_httpd()', 'Ending...');

}


Change
Code:
sub restart_httpd {

    my ($cmd, $rs, $rdata) = (undef, undef, undef);

    push_el(\@main::el, 'restart_httpd()', 'Starting...');

    $cmd = $main::cfg{'CMD_HTTPD'};

    sys_command_rs("$cmd reload");

    sleep(5);

    push_el(\@main::el, 'restart_httpd()', 'Ending...');

}


raphael Wrote:Open a ticket

I figured there was really no error, or bug in this so I thought I would ask here.
(This post was last modified: 05-21-2007 05:52 AM by Ballistic509.)
05-21-2007 05:43 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Apache - Reload instead of Restart - Ballistic509 - 05-21-2007 05:43 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)