Codebase list libvirt / aa5cd19
/etc/init.d/libvirt-guests: source /lib/lsb/init-function This make sure we redirect calls to systemctl correctly Closes: #739082 Thanks: Laurent Bigonville Guido Günther 10 years ago
1 changed file(s) with 9 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
33
44 Origin: vendor
55 ---
6 tools/libvirt-guests.sh.in | 41 ++++++++++++++++++++++++-----------------
6 tools/libvirt-guests.sh.in | 45 +++++++++++++++++++++++++++-----------------
77 tools/libvirt-guests.sysconf | 4 ++--
8 2 files changed, 26 insertions(+), 19 deletions(-)
8 2 files changed, 30 insertions(+), 19 deletions(-)
99
1010 diff --git a/tools/libvirt-guests.sh.in b/tools/libvirt-guests.sh.in
11 index 38e93c5..0f729be 100644
11 index 38e93c5..7aa6eee 100644
1212 --- a/tools/libvirt-guests.sh.in
1313 +++ b/tools/libvirt-guests.sh.in
1414 @@ -1,5 +1,17 @@
3030 # Copyright (C) 2011-2013 Red Hat, Inc.
3131 #
3232 # This library is free software; you can redistribute it and/or
33 @@ -16,33 +28,29 @@
33 @@ -16,33 +28,33 @@
3434 # License along with this library. If not, see
3535 # <http://www.gnu.org/licenses/>.
3636
4949 # Make sure this file is recognized as having translations: _("dummy")
5050 -. "@bindir@"/gettext.sh
5151 +. /usr/bin/gettext.sh
52 +
53 +# Make sure calls to this script get redirected to systemctl when
54 +# using systemd
55 +. /lib/lsb/init-functions
5256
5357 -export TEXTDOMAIN="@PACKAGE@" TEXTDOMAINDIR="@localedir@"
5458 +export TEXTDOMAIN="libvirt" TEXTDOMAINDIR="/usr/share/locale"
7478
7579 RETVAL=0
7680
77 @@ -531,8 +539,7 @@ gueststatus() {
81 @@ -531,8 +543,7 @@ gueststatus() {
7882
7983 # rh_status
8084 # Display current status: whether saved state exists, and whether start