When I uncomment those lines Caddy starts just fine:
root@sheaf:~# vim /etc/systemd/system/caddy.service
[make changes]
root@sheaf:~# systemctl daemon-reload
root@sheaf:~# systemctl restart caddy
root@sheaf:~# systemctl status caddy
● caddy.service - Caddy HTTP/2 web server
Loaded: loaded (/etc/systemd/system/caddy.service; disabled; vendor preset: enabled)
Active: active (running) since Sun 2017-08-20 00:34:30 UTC; 3s ago
Docs: https://caddyserver.com/docs
Main PID: 19747 (caddy)
Tasks: 6 (limit: 4915)
Memory: 1.7M
CPU: 48ms
CGroup: /system.slice/caddy.service
└─19747 /usr/local/bin/caddy -log stdout -agree=true -conf=/etc/caddy/Caddyfile -root=/var/tmp
Reverting those changes causes it to revert back to its prior failing state. What do you think is going on and why would I have to uncomment those lines?
Cheers,
Bob.