[Ovirt-devel] [PATCH] split ovirt-wui into separate scripts

Jim Meyering jim at meyering.net
Thu May 8 16:26:38 UTC 2008


"steve linabery" <slinabery at gmail.com> wrote:
...
> diff --git a/wui/conf/ovirt-mongrel-rails b/wui/conf/ovirt-mongrel-rails
> new file mode 100755
> index 0000000..0e5687b
> --- /dev/null
> +++ b/wui/conf/ovirt-mongrel-rails
> @@ -0,0 +1,72 @@
> +#!/bin/bash
> +#
> +#
> +# ovirt-mongrel-rails       startup script for ovirt-mongrel-rails
> +#
> +# chkconfig: - 97 03
> +# description: ovirt-mongrel-rails is an essential component of the ovirt VM manager.
> +#
> +
> +OVIRT_DIR=/usr/share/ovirt-wui
> +MONGREL_LOG=/var/log/ovirt-wui/mongrel.log
> +MONGREL_PID=/var/run/ovirt-wui/mongrel.pid
...
> +    if [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ovirt-wui ; then
...
> +stop() {
...
> +    if [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/ovirt-wui ; then

Hi Steve,
I know this is mostly just moving existing code around, but this is
probably as good a time as any to factor out that repeated lock file name.




More information about the ovirt-devel mailing list