commit 354815fd00b31a8ce117cefea5f59494f622c701
Author: Jan Palus <[email protected]>
Date:   Mon Sep 23 21:51:34 2019 +0200

    pldize lvmpolld init script (thanks Maciej Kędzierski)

 lvm2-pld_init.patch | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
---
diff --git a/lvm2-pld_init.patch b/lvm2-pld_init.patch
index c1dd118..5f64a85 100644
--- a/lvm2-pld_init.patch
+++ b/lvm2-pld_init.patch
@@ -242,3 +242,58 @@
        ;;
  esac
  
+--- LVM2.2.02.186/scripts/lvm2_lvmpolld_init_red_hat.in.orig   2019-09-23 
21:36:48.727591492 +0200
++++ LVM2.2.02.186/scripts/lvm2_lvmpolld_init_red_hat.in        2019-09-23 
21:39:51.961644240 +0200
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ #
+ # Copyright (C) 2015 Red Hat, Inc. All rights reserved.
+ #
+@@ -33,7 +33,7 @@
+ #                    Also avoids unsolicited termination due to external 
factors.
+ ### END INIT INFO
+ 
+-. /etc/init.d/functions
++. /etc/rc.d/init.d/functions
+ 
+ DAEMON=lvmpolld
+ 
+@@ -53,14 +53,15 @@
+ start()
+ {
+       ret=0
+-      action "Starting LVM poll daemon:" "$sbindir/$DAEMON" || ret=$?
++      run_cmd "Starting LVM poll daemon:" "$sbindir/$DAEMON" || ret=$?
+       return $ret
+ }
+ 
+ stop()
+ {
+       ret=0
+-      action "Signaling LVM poll daemon to exit:" killproc -p "$PID_FILE" 
"$DAEMON" -TERM || ret=$?
++      msg_stopping "LVM poll daemon"
++      killproc -p "$PID_FILE" "$DAEMON" -TERM || ret=$?
+       return "$ret"
+ }
+ 
+@@ -80,9 +81,9 @@
+       stop
+       rtrn=$?
+       [ $rtrn = 0 ] && rm -f "$LOCK_FILE"
+       ;;
+ 
+-  restart)
++  restart|force-reload)
+       if stop
+       then
+               start
+@@ -105,7 +107,7 @@
+       ;;
+ 
+   *)
+-      echo $"Usage: $0 
{start|stop|force-stop|restart|condrestart|try-restart|status}"
++      msg_usage "$0 
{start|stop|force-stop|restart|force-reload|condrestart|try-restart|status}"
+       ;;
+ esac
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lvm2.git/commitdiff/e5f07aee6e836f5eea18511333c3451effd73113

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to