Skip to content

Commit

Permalink
Add support for custom rotate command
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Oct 1, 2018
1 parent bc93695 commit aea4270
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions config.info
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ nginx_cmd=Full path to Nginx command,0
start_cmd=Command to start Nginx,0
stop_cmd=Command to stop Nginx,0
apply_cmd=Command to apply Nginx configuration,0
rotate_cmd=Command to re-open all log files,3,Just use apply command
child_procs=Default number of PHP child processes,3,Virtualmin default
php_socket=Connect Nginx to PHP processes with,1,1-Socket files,0-TCP connections
extra_dirs=Additional Nginx directives for new virtual hosts,9,80,5,\t
4 changes: 2 additions & 2 deletions virtual_feature.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1325,10 +1325,10 @@ sub feature_restart_web
}

# feature_restart_web_command()
# Returns the Nginx restart command
# Returns the Nginx log rotation command
sub feature_restart_web_command
{
return $config{'apply_cmd'};
return $config{'rotate_cmd'} || $config{'apply_cmd'};
}

# feature_get_web_php_children(&domain)
Expand Down

0 comments on commit aea4270

Please sign in to comment.