start multiples processes

Mildred ml.mildred593 at online.fr
Sat Apr 21 08:45:04 BST 2007


Le Sat 21/04/2007 à 01:15 Michael Biebl à écrit:
> 
> I would use the "instance" keyword and spawn a separate ifplugd job
> for each device.
> It could be triggered by udev events.
> 
> Add a udev rule like:
> SUBSYSTEM=="net", ACTION=="add", RUN+="/sbin/initctl emit
> network-device-added %k -eDEVNAME=%k"
> SUBSYSTEM=="net", ACTION=="remove", RUN+="/sbin/initctl emit
> network-device-removed %k -eDEVNAME=%k"
> 
> and the upstart job could look like:
> 
> start on network-device-added
> stop on network-device-removed
> stop on shutdown
> 
> exec ifplugd $1
> respawn
> instance
> 
> 

Well, thank you, I didn't knew there was an insance keyword. Where did
you heard about it ? Maybe there is some documentation I didn't found
yet that could be useful.

I don"t really like modifying udev this way, isn't there is a way to
make udev generate more generic events for everything ?

Thank you
Mildred

-- 
Mildred       <xmpp:mildred at jabber.fr> <http://mildred632.free.fr/>
Clef GPG :    <hkp://pgp.mit.edu> ou <http://mildred632.free.fr/gpg_key>
Fingerprint : 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 [9A7D 2E2B]



More information about the upstart-devel mailing list