From d88929d0a952eba2ce4bf67be487b150936faff6 Mon Sep 17 00:00:00 2001 From: Wei Ken Date: Wed, 30 Dec 2020 00:56:49 +0800 Subject: [PATCH] Adding ExecStop will avoid errors when doing a service bitwarden stop or restart in daemon.log. --- Running-with-systemd-docker.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Running-with-systemd-docker.md b/Running-with-systemd-docker.md index 90a0ac4..ae1c916 100644 --- a/Running-with-systemd-docker.md +++ b/Running-with-systemd-docker.md @@ -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