Makes init a one time job
This commit is contained in:
parent
ffa0dc29f6
commit
626675c26d
3 changed files with 0 additions and 3 deletions
|
@ -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"; \
|
||||
|
|
|
@ -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;'
|
||||
|
|
|
@ -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;'
|
||||
|
|
Loading…
Reference in a new issue