Update Initscripts

"$(which caddy)" is not work at startup. 
After this change, I can run "insserv -d caddy" to start caddy automatically on boot.
This commit is contained in:
Messyidea 2017-06-04 12:18:33 +08:00 committed by GitHub
parent 97a631ec4c
commit ee124a6d3c

View file

@ -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