mbox

Fix in libvirt install.sh

Message ID 1468524782-666-1-git-send-email-jonatan.schlag@ipfire.org
State Superseded
Headers

Message

Jonatan Schlag July 15, 2016, 5:33 a.m. UTC
  The libvirt daemon was not started after installation because the
initscritp is named 'libvirtd' not like the package 'libvirt'.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
---
 lfs/libvirt                 | 2 +-
 src/paks/libvirt/install.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
  

Comments

Michael Tremer July 15, 2016, 8:15 a.m. UTC | #1
Hi,

the same thing is happening in the uninstall.sh script where the service should
be stopped before being removed from disk.

-Michael

On Thu, 2016-07-14 at 21:33 +0200, Jonatan Schlag wrote:
> The libvirt daemon was not started after installation because the
> initscritp is named 'libvirtd' not like the package 'libvirt'.
> 
> Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
> ---
>  lfs/libvirt                 | 2 +-
>  src/paks/libvirt/install.sh | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/lfs/libvirt b/lfs/libvirt
> index 5af28cb..6768a72 100644
> --- a/lfs/libvirt
> +++ b/lfs/libvirt
> @@ -33,7 +33,7 @@ DIR_APP    = $(DIR_SRC)/$(THISAPP)
>  TARGET     = $(DIR_INFO)/$(THISAPP)
>  SUP_ARCH   = i586 x86_64
>  PROG       = libvirt
> -PAK_VER    = 3
> +PAK_VER    = 4
>  
>  DEPS       = "libpciaccess libyajl ncat qemu"
>  
> diff --git a/src/paks/libvirt/install.sh b/src/paks/libvirt/install.sh
> index 2009b0e..c97a18d 100644
> --- a/src/paks/libvirt/install.sh
> +++ b/src/paks/libvirt/install.sh
> @@ -29,7 +29,7 @@ getent passwd libvirt-remote >/dev/null || \
>  useradd -m -g libvirt-remote -s /bin/bash "libvirt-remote"
>  
>  extract_files
> -start_service --delay 300 --background ${NAME}
> +start_service --delay 300 --background libvirtd
>  ln -svf /etc/init.d/libvirtd /etc/rc.d/rc0.d/K20libvirtd
>  ln -svf /etc/init.d/libvirtd /etc/rc.d/rc3.d/S70libvirtd
>  ln -svf /etc/init.d/libvirtd /etc/rc.d/rc6.d/K20libvirtd