Skip to content
Snippets Groups Projects
Commit 626675c2 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

Makes init a one time job

parent ffa0dc29
No related branches found
No related tags found
No related merge requests found
......@@ -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;'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment