public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/scripts lvm2_lvmetad_init_red_hat.in
@ 2012-02-27 8:56 prajnoha
0 siblings, 0 replies; 3+ messages in thread
From: prajnoha @ 2012-02-27 8:56 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: prajnoha@sourceware.org 2012-02-27 08:56:46
Modified files:
scripts : lvm2_lvmetad_init_red_hat.in
Log message:
Use 'killproc' fn in lvmetad init script (fn provided by 'functions' init script library).
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/scripts/lvm2_lvmetad_init_red_hat.in.diff?cvsroot=lvm2&r1=1.3&r2=1.4
--- LVM2/scripts/lvm2_lvmetad_init_red_hat.in 2012/02/24 13:45:37 1.3
+++ LVM2/scripts/lvm2_lvmetad_init_red_hat.in 2012/02/27 08:56:46 1.4
@@ -63,7 +63,7 @@
stop()
{
ret=0
- action "Signaling LVM metadata daemon to exit:" kill -TERM $(pidofproc -p $PID_FILE $DAEMON) || ret=$?
+ action "Signaling LVM metadata daemon to exit:" killproc -p $PID_FILE $DAEMON -TERM || ret=$?
return $ret
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* LVM2/scripts lvm2_lvmetad_init_red_hat.in
@ 2012-02-24 13:45 prajnoha
0 siblings, 0 replies; 3+ messages in thread
From: prajnoha @ 2012-02-24 13:45 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: prajnoha@sourceware.org 2012-02-24 13:45:37
Modified files:
scripts : lvm2_lvmetad_init_red_hat.in
Log message:
Use '-p PID_FILE' for the status call since the pidfile is in its own lvm subdir and return proper status code.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/scripts/lvm2_lvmetad_init_red_hat.in.diff?cvsroot=lvm2&r1=1.2&r2=1.3
--- LVM2/scripts/lvm2_lvmetad_init_red_hat.in 2012/02/24 13:11:57 1.2
+++ LVM2/scripts/lvm2_lvmetad_init_red_hat.in 2012/02/24 13:45:37 1.3
@@ -41,10 +41,11 @@
lvm_vgscan=${sbindir}/vgscan
LOCK_FILE="/var/lock/subsys/$DAEMON"
+PID_FILE="@DEFAULT_RUN_DIR@/${DAEMON}.pid"
rh_status() {
- status $DAEMON
+ status -p $PID_FILE $DAEMON
}
rh_status_q() {
@@ -62,7 +63,7 @@
stop()
{
ret=0
- action "Signaling LVM metadata daemon to exit:" kill -TERM $(pidofproc $DAEMON) || ret=$?
+ action "Signaling LVM metadata daemon to exit:" kill -TERM $(pidofproc -p $PID_FILE $DAEMON) || ret=$?
return $ret
}
@@ -102,7 +103,8 @@
;;
status)
- status $DAEMON
+ rh_status
+ rtrn=$?
;;
*)
^ permalink raw reply [flat|nested] 3+ messages in thread
* LVM2/scripts lvm2_lvmetad_init_red_hat.in
@ 2012-02-24 13:11 prajnoha
0 siblings, 0 replies; 3+ messages in thread
From: prajnoha @ 2012-02-24 13:11 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: prajnoha@sourceware.org 2012-02-24 13:11:57
Modified files:
scripts : lvm2_lvmetad_init_red_hat.in
Log message:
The daemon as well as the first scan must be both executed properly, otherwise it's an error!
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/scripts/lvm2_lvmetad_init_red_hat.in.diff?cvsroot=lvm2&r1=1.1&r2=1.2
--- LVM2/scripts/lvm2_lvmetad_init_red_hat.in 2012/02/24 13:03:51 1.1
+++ LVM2/scripts/lvm2_lvmetad_init_red_hat.in 2012/02/24 13:11:57 1.2
@@ -54,7 +54,7 @@
start()
{
ret=0
- action "Starting LVM metadata daemon:" $DAEMON || ${lvm_vgscan} || ret=$?
+ action "Starting LVM metadata daemon:" $DAEMON && ${lvm_vgscan} || ret=$?
return $ret
}
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-27 8:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-27 8:56 LVM2/scripts lvm2_lvmetad_init_red_hat.in prajnoha
-- strict thread matches above, loose matches on Subject: below --
2012-02-24 13:45 prajnoha
2012-02-24 13:11 prajnoha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).