r/bitwarden_rs: Remove dangling container at start
If the *vaultwarden* service terminates unexpectedly, e.g. due to a power loss, `podman` may not successfully remove the container. We therefore need to try to delete it before starting it again, or `podman` will exit with an error because the container already exists.
This commit is contained in:
@@ -4,6 +4,7 @@ Description=Vaultwarden API server
|
|||||||
[Service]
|
[Service]
|
||||||
Type=notify
|
Type=notify
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
ExecStartPre=-/usr/bin/podman container rm --force --ignore vaultwarden
|
||||||
ExecStart=/usr/bin/podman run \
|
ExecStart=/usr/bin/podman run \
|
||||||
--pull never \
|
--pull never \
|
||||||
--sdnotify=conmon --cgroups=no-conmon \
|
--sdnotify=conmon --cgroups=no-conmon \
|
||||||
|
|||||||
Reference in New Issue
Block a user