Adding ExecStop will avoid errors when doing a service bitwarden stop or restart in daemon.log.

Wei Ken 2020-12-30 00:56:49 +08:00
parent 6a6c212948
commit d88929d0a9
1 changed files with 1 additions and 0 deletions

@ -24,6 +24,7 @@ ExecStart=/usr/bin/docker run \
--env-file /opt/.bitwarden.env \
-v /opt/bw-data:/data/ \
--rm --name bitwarden bitwardenrs/server:latest
ExecStop=-/usr/bin/docker stop bitwarden
ExecStopPost=-/usr/bin/docker rm bitwarden
Restart=Always
RestartSec=30s