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

Re: [Xen-devel] [PATCH 9/9] init/NetBSD: move xenbackendd to xend init script



On 07/17/12 18:08, Ian Jackson wrote:

> 
> Roger Pau Monne writes ("[PATCH 9/9] init/NetBSD: move xenbackendd to xend 
> init script"):
>> xenbackendd is not needed by the xl toolstack, so move it's launch to
>> the xend script.
> 
> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
> 
> on the basis that it doesn't touch non-BSD code.  But:
> 
>> +    printf "Stopping xenbackendd, xend\n"
>> +    xb_pid=$(check_pidfile ${XENBACKENDD_PIDFILE} ${SBINDIR}/xenbackendd)
>> +    xend_pid=`ps x -o pid,command|grep ${SBINDIR}/xend|awk '{ print $1 }'`
>> +    if test -n "$xb_pid";
>> +    then
>> +            kill -${sig_stop:-TERM} $xb_pid
>
> This is pretty horrid.  Does BSD not have better ways to manage
> daemons ?


Does a

xend_pid=`pgrep xend`

work ?

Christoph


-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.