diff --git a/mastodon/Chart.yaml b/mastodon/Chart.yaml
index 2e029b7dacd876534d1545b7a351c9ffa998bd4a..ebd04f1a510fe5e09a9820e271b99a6b84636bfd 100644
--- a/mastodon/Chart.yaml
+++ b/mastodon/Chart.yaml
@@ -2,5 +2,5 @@ apiVersion: v2
 name: mastodon
 description: Helm Chart for mastodon
 type: application
-version: 0.3.0
+version: 0.3.1
 appVersion: "v4.0"
diff --git a/mastodon/templates/deployment-web.yaml b/mastodon/templates/deployment-web.yaml
index 4d99db6e12fc180bee5eed8bb286f648bf6f75af..b77aba75dc19aaf1aa2da0313bdbd86c40661390 100644
--- a/mastodon/templates/deployment-web.yaml
+++ b/mastodon/templates/deployment-web.yaml
@@ -33,6 +33,14 @@ spec:
         - name: tmp
           emptyDir:
             medium: Memory
+      initContainers:
+        - name: clear-tmp
+          image: alpine:latest
+          imagePullPolicy: Always
+          command:
+            - rm
+            - -f
+            - /opt/mastodon/tmp/pids/server.pid
       containers:
         - name: {{ .Chart.Name }}
           securityContext: