diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 2c7f57c7cc..3e3a3955c1 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -20,5 +20,5 @@ archives: dst: /usr/lib/systemd/system strip_parent: true - src: ./packaging/spire-agent.conf - dst: /opt/conf/agent/ + dst: /opt/spire-agent/conf/ strip_parent: true diff --git a/packaging/spire-agent.service b/packaging/spire-agent.service index bdf71ae94d..600ba7d948 100644 --- a/packaging/spire-agent.service +++ b/packaging/spire-agent.service @@ -1,10 +1,11 @@ [Unit] -Description=Shared-Informer +Description=Spire-Agent [Service] User=root KillMode=process WorkingDirectory=/opt/spire-agent/ +Environment=run -config /opt/spire-agent/conf/spire-agent.conf ExecStart=/opt/spire-agent/spire-agent [Install]