Caddy service #454
-
I'm trying to setup service for Caddy for local unimportant stuff. Tried adapting from https://gitlab.archlinux.org/archlinux/packaging/packages/caddy/-/blob/main/caddy.service?ref_type=heads /etc/dinit.d/caddy:
but it fails horribly after less than a second:
Worst part is that there is nothing in logfile and it runs just fine on terminal: Not sure what I'm missing. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi. Judging by mentioned service, Looks like it needs some environment variables to start (which are defined in your shell by default). Try to use a XDG_DATA_HOME=/var/lib
XDG_CONFIG_HOME=/etc |
Beta Was this translation helpful? Give feedback.
Hi.
Judging by mentioned service, Looks like it needs some environment variables to start (which are defined in your shell by default). Try to use a
env-file
with caddy service and set these variables in thatenv-file
: