Modify service start method
The default service start method does not work with the new caddy command. It has to be modified as well as use the specified Caddyfile.master
parent
ea7717d6c6
commit
6f8dc7e49e
7
caddy
7
caddy
|
@ -21,6 +21,8 @@
|
|||
name="caddy"
|
||||
rcvar="${name}_enable"
|
||||
|
||||
start_cmd="${name}_start"
|
||||
|
||||
load_rc_config ${name}
|
||||
|
||||
: ${caddy_enable:="NO"}
|
||||
|
@ -31,4 +33,9 @@ command="${caddy_bin_path}"
|
|||
|
||||
required_files="${caddy_config_path}"
|
||||
|
||||
caddy_start()
|
||||
{
|
||||
$command start --config ${caddy_config_path}
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
||||
|
|
Loading…
Reference in New Issue