-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CA-315107 Create xapi-init-complete systemd target
Create a xapi-init-complete.target and a xapi-wait-init-complete.service which is wanted by it. The service invokes the existing xapi-wait-init-complete so that it is only done in one place now. The SPEC file will need altering to enable the xapi-wait-init-complete service on installation. xapi-domains.service (and any other service which needs to start after Xapi has completed initialisation) can now declare Wants=xapi-init-complete.target After=xapi-init-complete.target to ensure that Xapi will be done initialising before they are started.
- Loading branch information
1 parent
7e78a46
commit c5c0378
Showing
5 changed files
with
26 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Unit] | ||
Description=Xapi is available | ||
After=syslog.target | ||
After=time-sync.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=Wait for Xapi to complete initialisation | ||
Requires=xapi.service | ||
After=xapi.service | ||
Before=xapi-init-complete.target | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=@BINDIR@/xapi-wait-init-complete 240 | ||
RemainAfterExit=yes | ||
|
||
[Install] | ||
WantedBy=xapi-init-complete.target |