[pve-devel] [PATCHV2 3/4] Fix systemd start condition

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Jul 6 14:29:21 CEST 2016


On Wed, Jul 06, 2016 at 10:21:18AM +0200, Wolfgang Link wrote:
> Sheepdog requires on corosync to start successfully.
> In Proxmox VE there is no syslog.target so remove it to avoid warnings.
> ---
>  debian/patches/series                   |  3 ++-
>  debian/patches/systemd-adaptation.patch | 13 +++++++++++++
>  2 files changed, 15 insertions(+), 1 deletion(-)
>  create mode 100644 debian/patches/systemd-adaptation.patch
> 
> diff --git a/debian/patches/series b/debian/patches/series
> index 7ff4ba3..94ac093 100644
> --- a/debian/patches/series
> +++ b/debian/patches/series
> @@ -2,5 +2,6 @@
>  simplify-log-rotation.patch
>  set-no-file-limit.patch
>  cleanup-systemd-service.patch
> -add-service-start-condition.patch
> +#add-service-start-condition.patch

Why not just remove the line (and the file)?

>  revert_commit
> +systemd-adaptation.patch
> diff --git a/debian/patches/systemd-adaptation.patch b/debian/patches/systemd-adaptation.patch
> new file mode 100644
> index 0000000..872be8e
> --- /dev/null
> +++ b/debian/patches/systemd-adaptation.patch
> @@ -0,0 +1,13 @@
> +Index: sheepdog.git/script/sheepdog.service.in
> +===================================================================
> +--- sheepdog.git.orig/script/sheepdog.service.in
> ++++ sheepdog.git/script/sheepdog.service.in
> +@@ -1,7 +1,7 @@
> + [Unit]
> + Description=Sheepdog QEMU/KVM Block Storage
> + After=network.target
> +-Wants=syslog.target
> ++After=corosync.service
> + 
> + [Service]
> + EnvironmentFile=- at SYSCONFDIR@/default/sheepdog
> -- 
> 2.1.4
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 




More information about the pve-devel mailing list