From 6f8dc7e49e5ae58f42f18920093d8728f2bf8632 Mon Sep 17 00:00:00 2001 From: basilhendroff <63370329+basilhendroff@users.noreply.github.com> Date: Thu, 21 May 2020 05:10:14 +0800 Subject: [PATCH] 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. --- caddy | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/caddy b/caddy index dd27fc5..a09f0da 100644 --- a/caddy +++ b/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"