Skip to content

CA-404344: update service to systemd command#31

Merged
liulinC merged 1 commit intoxenserver:masterfrom
liulinC:private/linl/dev
Aug 18, 2025
Merged

CA-404344: update service to systemd command#31
liulinC merged 1 commit intoxenserver:masterfrom
liulinC:private/linl/dev

Conversation

@liulinC
Copy link
Contributor

@liulinC liulinC commented Aug 15, 2025

service from initscripts was dropped in new platform, and suggested to use systemctl to manage services.

This fix migrate service to systemctl, and is compatible with old platforms

@liulinC
Copy link
Contributor Author

liulinC commented Aug 15, 2025

job 4401354 looks good for XS9.

Copy link
Contributor

@edwintorok edwintorok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is equivalent to the previous code, although I'm not sure what happens if XAPI takes too long to restart, will the host fence? (although improving that if needed is something for another PR)

@psafont
Copy link
Contributor

psafont commented Aug 15, 2025

I'm not sure what happens if XAPI takes too long to restart,

The xapi service starts almost instantly, it the xapi-wait-init-complete, that may take a long time

`service` from initscripts was dropped in new platform,
and suggested to use `systemctl` to manage services.

This fix migrate `service` to `systemctl`, and is compatible
with old platforms

Signed-off-by: Lin Liu <Lin.Liu01@cloud.com>
@liulinC liulinC merged commit ef721a5 into xenserver:master Aug 18, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants