[uClibc] minit and msvc

Peter S. Mazinger ps.m at gmx.net
Thu Feb 12 19:26:45 UTC 2004


On Thu, 12 Feb 2004, Allan Clark wrote:

> Peter S. Mazinger wrote:
> 
> >Hello!
> >
> >Sorry crossposting, I have no idea where to put the problem ;-(
> >
> >If I boot with init=/sbin/minit (I have configured /etc/minit to boot up 
> >correctly, mount fs, etc...), I can stop a service with msvc -d dropbear 
> >from the commandline, but if I use a simple shell script as
> >/etc/minit/ctrlaltdel/run, like:
> >
> >#!/bin/sh
> >
> >/bin/msvc -d dropbear (or /etc/minit/dropbear), and press 
> ><CTRL>-<ALT>-<DEL>, this hangs. I see the run script and msvc -d 
> >dropbear in the process list. The service is not important that has to be 
> >stopped, it happens also on getty/mingetty/syslogd/klogd.
> >
> >The shell used does not matter, I have tried bash/busybox ash/busybox msh.
> >  
> >
> Macroscopically, isn't this asking for trouble?
> 
> You've got minit reacting to a C-A-D, but in that reaction you're 
> causing minit to deactive one of its children... abstractly, it's like 
> recursing through the minit process.
> 
> Is it worth investigating whether your "msvc -d dropbear" is waiting for 
> a response from minit, while minit is waiting for the script to complete 
> before it services more requests (including the script's request)?

Well, then I'll ask it the other way. How should I stop respawning 
services if msvc can't be used?
A "hacked" solution would be to list all of these, remember them, remove 
the respawn file from their config-dir, kill the service, and readd 
respawn

Peter 

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2


____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
Probald ki most! http://www.freestart.hu



More information about the uClibc mailing list