Skip to content
Snippets Groups Projects
Commit aa5cd194 authored by Guido Günther's avatar Guido Günther
Browse files

/etc/init.d/libvirt-guests: source /lib/lsb/init-function

This make sure we redirect calls to systemctl correctly

Closes: #739082
Thanks: Laurent Bigonville
parent ad466ce7
No related branches found
No related tags found
Loading
......@@ -4,12 +4,12 @@ Subject: Debianize libvirt-guests
Origin: vendor
---
tools/libvirt-guests.sh.in | 41 ++++++++++++++++++++++++-----------------
tools/libvirt-guests.sh.in | 45 +++++++++++++++++++++++++++-----------------
tools/libvirt-guests.sysconf | 4 ++--
2 files changed, 26 insertions(+), 19 deletions(-)
2 files changed, 30 insertions(+), 19 deletions(-)
diff --git a/tools/libvirt-guests.sh.in b/tools/libvirt-guests.sh.in
index 38e93c5..0f729be 100644
index 38e93c5..7aa6eee 100644
--- a/tools/libvirt-guests.sh.in
+++ b/tools/libvirt-guests.sh.in
@@ -1,5 +1,17 @@
......@@ -31,7 +31,7 @@ index 38e93c5..0f729be 100644
# Copyright (C) 2011-2013 Red Hat, Inc.
#
# This library is free software; you can redistribute it and/or
@@ -16,33 +28,29 @@
@@ -16,33 +28,33 @@
# License along with this library. If not, see
# <http://www.gnu.org/licenses/>.
......@@ -50,6 +50,10 @@ index 38e93c5..0f729be 100644
# Make sure this file is recognized as having translations: _("dummy")
-. "@bindir@"/gettext.sh
+. /usr/bin/gettext.sh
+
+# Make sure calls to this script get redirected to systemctl when
+# using systemd
+. /lib/lsb/init-functions
-export TEXTDOMAIN="@PACKAGE@" TEXTDOMAINDIR="@localedir@"
+export TEXTDOMAIN="libvirt" TEXTDOMAINDIR="/usr/share/locale"
......@@ -75,7 +79,7 @@ index 38e93c5..0f729be 100644
RETVAL=0
@@ -531,8 +539,7 @@ gueststatus() {
@@ -531,8 +543,7 @@ gueststatus() {
# rh_status
# Display current status: whether saved state exists, and whether start
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment