1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 11:55:55 +03:00
lvm2/scripts
Fabio M. Di Nitto 2565ffad25 Fix clvmd init script return code when executed as non-root user.
clvmd daemon itself does the right thing when invoked as non-root, by
returning 4.

The patch removes the use daemon function from
/etc/rc.d/init.d/functions that´s unnecessary and has th bad habit to
mask the return codes from the real daemon.

Add a simple and generic check to see if clvmd is executed by root or not.

Our stop/reload/restart paths in the init script are complex and not all
the tools involved in the process are guaranteed to return 4 if executed
by non-root against a process that´s running as root (for example kill
-TERM will return -1 and parsing the output to catch the error is
suboptimal at best).

https://bugzilla.redhat.com/show_bug.cgi?id=553381
2010-08-12 09:14:59 +00:00
..
lvm2create_initrd Update lvm2create_initrd to support gentoo. 2006-11-21 22:41:56 +00:00
clvmd_fix_conf.sh Use /bin/bash for scripts with bashisms 2010-05-14 11:33:20 +00:00
clvmd_init_red_hat.in Fix clvmd init script return code when executed as non-root user. 2010-08-12 09:14:59 +00:00
cmirrord_init_red_hat.in Fix syntax error in cmirror init script 2010-01-22 16:19:38 +00:00
fsadm.sh Use /bin/bash for scripts with bashisms 2010-05-14 11:33:20 +00:00
last_cvs_update.sh Use /bin/bash for scripts with bashisms 2010-05-14 11:33:20 +00:00
lvm2_monitoring_init_red_hat.in Change daemon lock filename from lvm2_monitor to lvm2-monitor for consistency. 2010-04-15 19:15:03 +00:00
lvm2_monitoring_init_rhel4 Make warnings go to stderr. Change log_warn to that effect, log_print 2007-06-28 17:33:44 +00:00
lvm_dump.sh Fix lvmdump /sys listing to include virtual devices directory. 2009-01-06 18:02:57 +00:00
lvmconf_lockingtype2.sh Use /bin/bash for scripts with bashisms 2010-05-14 11:33:20 +00:00
lvmconf.sh Install lvmconf script by default. 2010-05-20 11:20:35 +00:00
lvmdump.sh touch file 2010-04-14 20:03:46 +00:00
Makefile.in Add make install_initscripts 2010-05-20 14:45:14 +00:00
relpath.awk Fix scripts/relpath.awk to work with mawk 2010-05-21 15:28:16 +00:00
vg_convert change two files in different directories 2006-06-06 17:44:11 +00:00
vgimportclone.sh Use /bin/bash for scripts with bashisms 2010-05-14 11:33:20 +00:00