Re: [PATCH] Fix libvirt-guests init script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > +started() {
> > +    touch $VAR_SUBSYS_LIBVIRT_GUESTS
> 
> touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
> 
> > +}
> > +
> >  start() {
> > -    [ -f $LISTFILE ] || return 0
> > +    [ -f $LISTFILE ] || { started; return 0; }
> 
> Do we want to detect failures in started (that is, failure to touch the
> lock file)?  Then again, failure to touch the lock file merely means
> that stop won't be called automatically, but doesn't affect whether we
> actually started and can call stop manually, so blindly succeeding seems
> okay to me.

Yeah, I think that's fine. Also no other init script seems to check it either.

> > +
> > +    rm -f $VAR_SUBSYS_LIBVIRT_GUESTS
> 
> rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
> 
> ACK with those tweaks.

Thanks for the review. I made the corrections you suggested here and in the
next email and pushed.

Jirka

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]