I have a big issue running caddy + hugo as a service as user (named caddy)
This is the service file
[Unit] Description=Caddy's service ConditionFileIsExecutable=/usr/local/bin/caddy [Service] Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/caddy/.go/bin" User=caddy StartLimitInterval=5 StartLimitBurst=10 ExecStart=/usr/local/bin/caddy "-conf=/home/caddy/caddyfile" Restart=always RestartSec=120 [Install] WantedBy=multi-user.target systemctl status Caddy ● Caddy.service - Caddy's service Loaded: loaded (/etc/systemd/system/Caddy.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Wed 2018-08-22 12:49:44 CEST; 41s ago Process: 42183 ExecStart=/usr/local/bin/caddy -conf=/home/caddy/caddyfile (code=exited, status=1/FAILURE) Main PID: 42183 (code=exited, status=1/FAILURE)
I start the service with systemctl but as you can see it fails to start. Journalctl -b gives me nothing about Caddy service, any hint?