/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
3 | 3 | |
4 | 4 | Origin: vendor |
5 | 5 | --- |
6 | tools/libvirt-guests.sh.in | 41 ++++++++++++++++++++++++----------------- | |
6 | tools/libvirt-guests.sh.in | 45 +++++++++++++++++++++++++++----------------- | |
7 | 7 | tools/libvirt-guests.sysconf | 4 ++-- |
8 | 2 files changed, 26 insertions(+), 19 deletions(-) | |
8 | 2 files changed, 30 insertions(+), 19 deletions(-) | |
9 | 9 | |
10 | 10 | diff --git a/tools/libvirt-guests.sh.in b/tools/libvirt-guests.sh.in |
11 | index 38e93c5..0f729be 100644 | |
11 | index 38e93c5..7aa6eee 100644 | |
12 | 12 | --- a/tools/libvirt-guests.sh.in |
13 | 13 | +++ b/tools/libvirt-guests.sh.in |
14 | 14 | @@ -1,5 +1,17 @@ |
30 | 30 | # Copyright (C) 2011-2013 Red Hat, Inc. |
31 | 31 | # |
32 | 32 | # This library is free software; you can redistribute it and/or |
33 | @@ -16,33 +28,29 @@ | |
33 | @@ -16,33 +28,33 @@ | |
34 | 34 | # License along with this library. If not, see |
35 | 35 | # <http://www.gnu.org/licenses/>. |
36 | 36 | |
49 | 49 | # Make sure this file is recognized as having translations: _("dummy") |
50 | 50 | -. "@bindir@"/gettext.sh |
51 | 51 | +. /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 | |
52 | 56 | |
53 | 57 | -export TEXTDOMAIN="@PACKAGE@" TEXTDOMAINDIR="@localedir@" |
54 | 58 | +export TEXTDOMAIN="libvirt" TEXTDOMAINDIR="/usr/share/locale" |
74 | 78 | |
75 | 79 | RETVAL=0 |
76 | 80 | |
77 | @@ -531,8 +539,7 @@ gueststatus() { | |
81 | @@ -531,8 +543,7 @@ gueststatus() { | |
78 | 82 | |
79 | 83 | # rh_status |
80 | 84 | # Display current status: whether saved state exists, and whether start |