From ee124a6d3ceb19c6e1547c54f7415f44fee79e14 Mon Sep 17 00:00:00 2001 From: Messyidea Date: Sun, 4 Jun 2017 12:18:33 +0800 Subject: [PATCH] Update Initscripts "$(which caddy)" is not work at startup. After this change, I can run "insserv -d caddy" to start caddy automatically on boot. --- dist/init/linux-sysvinit/caddy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/init/linux-sysvinit/caddy b/dist/init/linux-sysvinit/caddy index 8ec386e8..763f3fa6 100644 --- a/dist/init/linux-sysvinit/caddy +++ b/dist/init/linux-sysvinit/caddy @@ -14,7 +14,7 @@ DESC="the caddy web server" NAME=caddy -DAEMON=$(which caddy) +DAEMON=/usr/local/bin/caddy DAEMONUSER=www-data PIDFILE=/var/run/$NAME.pid