Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Cluster Development (http://www.linux-archive.org/cluster-development/)
-   -   checkquorum.wdmd: add integration script with wdmd (http://www.linux-archive.org/cluster-development/711082-checkquorum-wdmd-add-integration-script-wdmd.html)

Dietmar Maurer 10-10-2012 04:26 AM

checkquorum.wdmd: add integration script with wdmd
 
> +# rpm based distros
> +[ -d /etc/sysconfig ] &&
> + [ -f /etc/sysconfig/checkquorum ] &&
> + . /etc/sysconfig/checkquorum
> +
> +# deb based distros
> +[ ! -d /etc/sysconfig ] &&
> + [ -f /etc/default/checkquorum ] &&
> + . /etc/default/checkquorum
> +

FYI: Some RAID tool vendors delivers utilities for debian which creates directory '/etc/sysconfig'
on debian boxes, so that test is not reliable.


All times are GMT. The time now is 03:37 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.