<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="timeline-comment-wrapper js-comment-container" style="box-sizing: border-box; position: relative; padding-left: 64px; margin-top: 0px; margin-bottom: 15px; border-top-width: 2px; border-top-style: solid; border-top-color: rgb(255, 255, 255); border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: rgb(255, 255, 255); color: rgb(51, 51, 51); font-family: Helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 13px; line-height: 18px;"><div id="issue-105198669" class="previewable-edit timeline-comment comment js-task-list-container js-comment current-user" data-body-version="7017e11a4d5dc0d9019554d2f25ff2b1" style="box-sizing: border-box; position: relative; background-color: rgb(255, 255, 255); border: 1px solid rgb(191, 204, 209); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;"><div class="comment-content" style="box-sizing: border-box;"><div class="edit-comment-hide" style="box-sizing: border-box;"><div class="markdown-body comment-body markdown-format js-comment-body" style="box-sizing: border-box; overflow: visible; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif; font-size: 14px; line-height: 1.6; word-wrap: break-word; width: 694px; padding: 15px;"><p style="box-sizing: border-box; margin-top: 0px !important; margin-bottom: 16px;" class="">I have a template for creating the backup:</p><h4 style="box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.4; font-size: 1.25em; position: relative;" class=""><a href="mailto:backup@.service" style="box-sizing: border-box; background-color: transparent; color: rgb(64, 120, 192); text-decoration: none;" class="">backup@.service</a></h4><pre style="box-sizing: border-box; overflow: auto; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; margin-top: 0px; margin-bottom: 16px; line-height: 1.45; padding: 16px; background-color: rgb(247, 247, 247); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-wrap: normal;" class=""><code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; padding: 0px; margin: 0px; background-color: transparent; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: normal; border: 0px; display: inline; line-height: inherit; word-wrap: normal;" class="">[Unit]
Description=Instance %i
[Service]
ExecStart=/bin/sh -c "echo do backup job for %i"
[Install]
WantedBy=maintenance.target
</code></pre><p style="box-sizing: border-box; margin-top: 0px; margin-bottom: 16px;" class="">and some target:</p><h4 style="box-sizing: border-box; margin-top: 1em; margin-bottom: 16px; line-height: 1.4; font-size: 1.25em; position: relative;" class="">maintenance.target</h4><pre style="box-sizing: border-box; overflow: auto; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; margin-top: 0px; margin-bottom: 16px; line-height: 1.45; padding: 16px; background-color: rgb(247, 247, 247); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-wrap: normal;" class=""><code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; padding: 0px; margin: 0px; background-color: transparent; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: normal; border: 0px; display: inline; line-height: inherit; word-wrap: normal;" class="">[Unit]
Description=target for maintenance
StopWhenUnneeded=yes
</code></pre><div style="box-sizing: border-box; margin-top: 0px; margin-bottom: 0px !important;" class="">As can be seen, instances from backup@ start with maintenance.target. But they run in parallel.<br style="box-sizing: border-box;" class="">There is some way to run them one after the other?<br style="box-sizing: border-box;" class="">I thought that specifying <code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; padding: 0.2em 0px; margin: 0px; background-color: rgba(0, 0, 0, 0.0392157); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;" class="">Conflicts=backup@*.service</code> in the template should lead to this, but it is not.</div><div class=""><br class=""></div></div></div><form accept-charset="UTF-8" action="https://github.com/systemd/systemd/issues/1187" class="js-comment-update" data-form-nonce="bc7bf06ca26dfe54b833782683731811a39abc0e" data-remote="" data-type="json" data-upload-policy-url="/upload/policies/assets" method="post" style="box-sizing: border-box;"><div style="box-sizing: border-box; margin: 0px; padding: 0px; display: inline;" class=""></div></form></div></div></div><div class="discussion-item discussion-item-labeled" style="box-sizing: border-box; position: relative; margin: 15px 0px 15px 79px; padding-left: 25px; color: rgb(51, 51, 51); font-family: Helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 13px; line-height: 18px;"><div class="discussion-item-header" id="event-402702841" style="box-sizing: border-box; min-height: 30px; padding-top: 5px; padding-bottom: 0px; color: rgb(118, 118, 118); line-height: 20px; word-wrap: break-word;"><span class="octicon discussion-item-icon octicon-tag" style="box-sizing: border-box; font-size: 16px; line-height: 28px; font-family: octicons; display: inline-block; text-rendering: auto; -webkit-font-smoothing: antialiased; -webkit-user-select: none; float: left; width: 32px; height: 32px; margin-top: -7px; margin-left: -40px; text-align: center; background-color: rgb(243, 243, 243); border: 2px solid rgb(255, 255, 255); border-top-left-radius: 50%; border-top-right-radius: 50%; border-bottom-right-radius: 50%; border-bottom-left-radius: 50%;"></span></div></div></body></html>