Makes init a one time job

This commit is contained in:
pierreozoux 2015-01-12 14:35:31 +01:00
parent ffa0dc29f6
commit 626675c26d
3 changed files with 0 additions and 3 deletions

View file

@ -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"; \

View file

@ -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;'

View file

@ -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;'