diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..b3384bdc --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +# files for systemd +*.path text eol=lf whitespace=blank-at-eol,space-before-tab,tab-in-indent,trailing-space,tabwidth=2 +*.service text eol=lf whitespace=blank-at-eol,space-before-tab,tab-in-indent,trailing-space,tabwidth=2 +*.timer text eol=lf whitespace=blank-at-eol,space-before-tab,tab-in-indent,trailing-space,tabwidth=2 diff --git a/dist/init/linux-systemd/caddy@.service b/dist/init/linux-systemd/caddy@.service index 7bb4f552..0baaac10 100644 --- a/dist/init/linux-systemd/caddy@.service +++ b/dist/init/linux-systemd/caddy@.service @@ -4,7 +4,9 @@ [Unit] Description=Caddy HTTP/2 web server %I Documentation=https://caddyserver.com/docs -After=network.target +After=network-online.target +Wants=network-online.target +Wants=systemd-networkd-wait-online.service [Service] ; run user and group for caddy