diff --git a/mastodon-postgresql.service b/mastodon-postgresql.service index 3fcb868..6d3f4e2 100644 --- a/mastodon-postgresql.service +++ b/mastodon-postgresql.service @@ -10,8 +10,8 @@ Environment=PODMAN_SYSTEMD_UNIT=%n Restart=on-failure TimeoutStopSec=70 ExecStart=/usr/bin/podman run -d --name mastodon-postgresql --net internal_network --restart always --shm-size 256mb --health-cmd CMD,pg_isready,-U,postgres -v mastodon-postgresql:/var/lib/postgresql/data -e POSTGRES_HOST_AUTH_METHOD=trust postgres:14 -ExecStop=/usr/bin/podman stop mastodon-postgres -ExecStopPost=/usr/bin/podman rm mastodon-postgres +ExecStop=/usr/bin/podman stop mastodon-postgresql +ExecStopPost=/usr/bin/podman rm mastodon-postgresql Type=oneshot RemainAfterExit=yes