]> git.pld-linux.org Git - packages/lvm2.git/blob - pldize_lvm2_monitor.patch
- use pld systemd unit names in monitor unit
[packages/lvm2.git] / pldize_lvm2_monitor.patch
1 --- LVM2.2.02.85/scripts/lvm2_monitoring_init_red_hat.in.orig   2011-10-05 21:33:09.165296447 +0200
2 +++ LVM2.2.02.85/scripts/lvm2_monitoring_init_red_hat.in        2011-10-05 21:36:47.152774996 +0200
3 @@ -1,3 +1,3 @@
4 -#!/bin/bash
5 +#!/bin/sh
6  #
7  # Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
8 @@ -50,7 +50,8 @@ start()
9         VGSLIST=`$VGS --noheadings -o name --config 'log{command_names=0 prefix="  "}' 2> /dev/null`
10         for vg in $VGSLIST
11         do
12 -           action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y --config 'log{command_names=0 prefix="  "}' $vg || ret=$?
13 +           msg_starting "Starting monitoring for VG $vg:" \
14 +               daemon $VGCHANGE --monitor y --poll y --config 'log{command_names=0 prefix="  "}' $vg || return $?
15         done
16  
17         return $ret
18 @@ -68,7 +71,8 @@ stop()
19         VGSLIST=`$VGS --noheadings -o name --config 'log{command_names=0 prefix="  "}' 2> /dev/null`
20         for vg in $VGSLIST
21         do
22 -           action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n --config 'log{command_names=0 prefix="  "}' $vg || ret=$?
23 +           msg_stopping "Stopping monitoring for VG $vg:" \
24 +               $VGCHANGE --monitor n --config 'log{command_names=0 prefix="  "}' $vg || return $?
25         done
26         return $ret
27  }
28 --- LVM2.2.02.94/scripts/lvm2_monitoring_systemd_red_hat.service.in~    2012-02-01 15:08:39.000000000 +0200
29 +++ LVM2.2.02.94/scripts/lvm2_monitoring_systemd_red_hat.service.in     2012-03-29 00:12:31.886921407 +0300
30 @@ -1,7 +1,7 @@
31  [Unit]
32  Description=Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
33  Requires=dm-event.socket
34 -After=dm-event.socket fedora-storage-init.service fedora-storage-init-late.service
35 +After=dm-event.socket pld-storage-init.service pld-storage-init-late.service
36  Before=local-fs.target
37  DefaultDependencies=no
38  Conflicts=shutdown.target
This page took 0.033913 seconds and 3 git commands to generate.