From 626675c26ddfa703030799fcceb72984f61e1015 Mon Sep 17 00:00:00 2001
From: pierreozoux <pierre@ozoux.net>
Date: Mon, 12 Jan 2015 14:35:31 +0100
Subject: [PATCH] Makes init a one time job

---
 unit-files/init@.service   | 1 -
 unit-files/lamp@.service   | 1 -
 unit-files/static@.service | 1 -
 3 files changed, 3 deletions(-)

diff --git a/unit-files/init@.service b/unit-files/init@.service
index 2a12f80..696c993 100644
--- a/unit-files/init@.service
+++ b/unit-files/init@.service
@@ -3,7 +3,6 @@ Description=Initializer
 
 [Service]
 Type=oneshot
-RemainAfterExit=yes
 ExecStartPre=/bin/bash -euxc ' \
   BACKUP_DESTINATION=`cat /data/BACKUP_DESTINATION`; \
   echo "Intitializing backups with $BACKUP_DESTINATION"; \
diff --git a/unit-files/lamp@.service b/unit-files/lamp@.service
index d749141..02c622e 100644
--- a/unit-files/lamp@.service
+++ b/unit-files/lamp@.service
@@ -41,7 +41,6 @@ ExecReload=/bin/bash -euxc ' \
   systemctl restart backup@%i.timer;'
 
 ExecStop=/bin/bash -euxc ' \
-  systemctl stop init@%i.service; \
   systemctl stop discovery@%i.service; \
   systemctl stop backup@%i.timer; \
   /usr/bin/docker stop %i;'
diff --git a/unit-files/static@.service b/unit-files/static@.service
index 5173d56..14ddc4d 100644
--- a/unit-files/static@.service
+++ b/unit-files/static@.service
@@ -34,7 +34,6 @@ ExecReload=/bin/bash -euxc ' \
   systemctl restart discovery@%i.service; \
   systemctl restart backup@%i.timer;'
 ExecStop=/bin/bash -euxc ' \
-  systemctl stop init@%i.service; \
   systemctl stop discovery@%i.service; \
   systemctl stop backup@%i.timer; \
   /usr/bin/docker stop %i;'
-- 
GitLab